35 lines
926 B
CMake
35 lines
926 B
CMake
cmake_minimum_required(VERSION 3.30)
|
|
|
|
project(StartUpRunner VERSION 1.0.0 LANGUAGES CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 26)
|
|
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)
|
|
|
|
|
|
find_package(Boost CONFIG)
|
|
find_package(nlohmann_json CONFIG)
|
|
|
|
|
|
add_executable(StartUpRunner main.cpp
|
|
appinfo.h appinfo.cpp
|
|
executionmanager.h executionmanager.cpp
|
|
log.h log.cpp)
|
|
|
|
target_link_libraries(StartUpRunner PRIVATE nlohmann_json::nlohmann_json re2::re2)
|