This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user