'Generic Commit'
Some checks failed
Build-Test-Publish / Build (push) Has been cancelled

This commit is contained in:
Your Name
2025-06-02 00:49:38 +12:00
parent 72af459e73
commit 9b420f1964

View File

@@ -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