CustomStartupRunner/CMakeLists.txt

35 lines
926 B
Text
Raw Normal View History

cmake_minimum_required(VERSION 3.30)
2025-09-20 20:20:47 +05:30
2026-05-14 15:27:08 +05:30
project(StartUpRunner VERSION 1.0.0 LANGUAGES CXX)
2025-09-20 20:20:47 +05:30
2026-05-14 15:27:08 +05:30
set(CMAKE_CXX_STANDARD 26)
2025-09-20 20:20:47 +05:30
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(FetchContent)
FetchContent_Declare(
absl
GIT_REPOSITORY https://github.com/abseil/abseil-cpp.git
GIT_TAG 20260526.0 # Use a stable version tag or commit hash
)
FetchContent_MakeAvailable(absl)
set(RE2_BUILD_TESTING OFF CACHE BOOL "" FORCE)
set(RE2_INSTALL OFF CACHE BOOL "" FORCE)
FetchContent_Declare(
re2
GIT_REPOSITORY https://github.com/google/re2.git
GIT_TAG 2025-11-05 # Use a stable version tag or 'main'
)
FetchContent_MakeAvailable(re2)
2025-09-20 20:20:47 +05:30
find_package(Boost CONFIG)
2026-05-14 15:27:08 +05:30
find_package(nlohmann_json CONFIG)
2025-09-20 20:20:47 +05:30
2026-05-14 15:27:08 +05:30
add_executable(StartUpRunner main.cpp
appinfo.h appinfo.cpp
executionmanager.h executionmanager.cpp
log.h log.cpp)
2025-09-20 20:20:47 +05:30
target_link_libraries(StartUpRunner PRIVATE nlohmann_json::nlohmann_json re2::re2)