d3af7d54ff
- CMakeLists.txt - main.cpp - data_collectors.cpp - data_collectors.h - runner.cpp - runner.h Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
37 lines
1.1 KiB
CMake
37 lines
1.1 KiB
CMake
cmake_minimum_required(VERSION 3.20)
|
|
|
|
# odr_console — lanzador GUI + bucle reactivo 5 pasos. Issue 0066.
|
|
# Stack: ImGui + SQLite (registry.db RO). DuckDB y jobs_pool: fases siguientes.
|
|
|
|
# SQLite3: prefer parent target. Fallback a vendored.
|
|
find_package(SQLite3 QUIET)
|
|
if(NOT SQLite3_FOUND AND NOT TARGET sqlite3_vendored)
|
|
set(SQLITE3_AMALG_DIR ${CMAKE_SOURCE_DIR}/vendor/sqlite3)
|
|
add_library(sqlite3_vendored STATIC ${SQLITE3_AMALG_DIR}/sqlite3.c)
|
|
target_include_directories(sqlite3_vendored PUBLIC ${SQLITE3_AMALG_DIR})
|
|
target_compile_definitions(sqlite3_vendored PRIVATE
|
|
SQLITE_THREADSAFE=1
|
|
SQLITE_ENABLE_FTS5
|
|
SQLITE_ENABLE_JSON1
|
|
)
|
|
add_library(SQLite::SQLite3 ALIAS sqlite3_vendored)
|
|
endif()
|
|
|
|
add_imgui_app(odr_console
|
|
main.cpp
|
|
data_registry.cpp
|
|
data_collectors.cpp
|
|
runner.cpp
|
|
)
|
|
|
|
target_include_directories(odr_console PRIVATE
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
${CMAKE_SOURCE_DIR}/vendor/sqlite3
|
|
)
|
|
|
|
target_link_libraries(odr_console PRIVATE SQLite::SQLite3)
|
|
|
|
if(WIN32)
|
|
set_target_properties(odr_console PROPERTIES WIN32_EXECUTABLE TRUE)
|
|
endif()
|