CMakeLists.txt 336 B

123456789101112
  1. cmake_minimum_required(VERSION 3.1)
  2. project(DummyImport CXX)
  3. find_package(nlohmann_json REQUIRED)
  4. add_executable(with_namespace_target main.cpp)
  5. target_link_libraries(with_namespace_target nlohmann_json::nlohmann_json)
  6. add_executable(without_namespace_target main.cpp)
  7. target_link_libraries(without_namespace_target nlohmann_json)