Files
agents_dashboard/CMakeLists.txt
T
fn-orquestador 460b7f1484 fix: build errors — nlohmann include path, fn_log printf style, crypt32 link
- Fix nlohmann include: 'vendor/nlohmann/json.hpp' -> 'nlohmann/json.hpp'
  (cpp/vendor is in include path, no double-vendor prefix needed)
- Fix fn_log API: log_info/log_warn/log_error (not info/warn/error)
- Fix format strings: {} -> %s (logger uses printf-style, not fmtlib)
- CMakeLists: add crypt32 link for Windows DPAPI (MinGW needs explicit link,
  #pragma comment(lib) only works with MSVC)
- Build: exit 0, exe 22MB, .rsrc section present (icon embedded)

Issue: 0129
Co-Authored-By: fn-orquestador <noreply@fn-registry.local>
2026-05-22 21:47:39 +02:00

25 lines
854 B
CMake

add_imgui_app(agents_dashboard
main.cpp
# Registry functions (issue 0129):
${CMAKE_SOURCE_DIR}/functions/core/http_request.cpp
${CMAKE_SOURCE_DIR}/functions/core/http_get_json.cpp
${CMAKE_SOURCE_DIR}/functions/core/sse_client.cpp
${CMAKE_SOURCE_DIR}/functions/infra/secret_store.cpp
)
target_include_directories(agents_dashboard PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/vendor # nlohmann/json.hpp
)
# fn_table_viz: optional — guards keep the app compilable without it.
if(TARGET fn_table_viz)
target_link_libraries(agents_dashboard PRIVATE fn_table_viz)
endif()
if(WIN32)
set_target_properties(agents_dashboard PROPERTIES WIN32_EXECUTABLE TRUE)
# secret_store.cpp uses CryptProtectData / CryptUnprotectData (crypt32)
target_link_libraries(agents_dashboard PRIVATE crypt32)
endif()