1
0
mirror of https://github.com/nlohmann/json.git synced 2025-08-07 18:02:57 +03:00
Files
json/integration/cpm/CMakeLists.txt
2025-04-11 08:42:13 +00:00

10 lines
262 B
CMake

cmake_minimum_required(VERSION 3.15)
project(json_example)
include(${CMAKE_SOURCE_DIR}/cmake/CPM.cmake)
CPMAddPackage("gh:nlohmann/json@3.12.0")
add_executable(json_example example.cpp)
target_link_libraries(json_example PRIVATE nlohmann_json::nlohmann_json)