cmake_minimum_required(VERSION 3.14) project(analyze) # https://github.com/sjinks/sqlite3-cmake/ include(FetchContent) FetchContent_Declare( sqlite3_amalgamation URL https://sqlite.org/2025/sqlite-amalgamation-3500200.zip URL_HASH SHA3_256=75c118e727ee6a9a3d2c0e7c577500b0c16a848d109027f087b915b671f61f8a DOWNLOAD_EXTRACT_TIMESTAMP TRUE ) FetchContent_MakeAvailable(sqlite3_amalgamation) add_library(sqlite3 STATIC ${sqlite3_amalgamation_SOURCE_DIR}/sqlite3.c ) target_include_directories(sqlite3 PUBLIC ${sqlite3_amalgamation_SOURCE_DIR} ) add_library(SQLite::SQLite3 ALIAS sqlite3) FetchContent_Declare( sqlite3pp GIT_REPOSITORY https://github.com/iwongu/sqlite3pp.git GIT_TAG master ) FetchContent_MakeAvailable(sqlite3pp) FetchContent_Declare( indicators GIT_REPOSITORY https://github.com/p-ranav/indicators.git GIT_TAG master ) FetchContent_MakeAvailable(indicators) file(GLOB SOURCES src/*.cpp) add_executable(${PROJECT_NAME} ${SOURCES}) set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD 17) target_include_directories(${PROJECT_NAME} PUBLIC include ${sqlite3pp_SOURCE_DIR}/headeronly_src ${indicators_SOURCE_DIR}/include ) target_link_libraries(${PROJECT_NAME} PRIVATE SQLite::SQLite3)