1cmake_minimum_required(VERSION 3.1) 2 3project(DummyImport CXX) 4 5find_package(nlohmann_json REQUIRED) 6 7add_executable(with_namespace_target main.cpp) 8target_link_libraries(with_namespace_target nlohmann_json::nlohmann_json) 9 10add_executable(without_namespace_target main.cpp) 11target_link_libraries(without_namespace_target nlohmann_json) 12 13