From 9b420f196405f97a8c65206359abb6fbaa481b1b Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 2 Jun 2025 00:49:38 +1200 Subject: [PATCH] 'Generic Commit' --- CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 94655ad..187846d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,8 +51,18 @@ include_directories( # Create executable add_executable(${PROJECT_EXE_NAME} ${SOURCES}) +include(FetchContent) +# Add nlohmann/json +FetchContent_Declare( + nlohmann_json + GIT_REPOSITORY https://github.com/nlohmann/json.git + GIT_TAG v3.11.3 +) +FetchContent_MakeAvailable(nlohmann_json) + # Remove specific static flags as CMAKE_EXE_LINKER_FLAGS handles it now target_link_libraries(${PROJECT_EXE_NAME} + nlohmann_json::nlohmann_json ) # Install target