config.cmake.in 710 B

123456789101112131415
  1. include(FindPackageHandleStandardArgs)
  2. set(${CMAKE_FIND_PACKAGE_NAME}_CONFIG ${CMAKE_CURRENT_LIST_FILE})
  3. find_package_handle_standard_args(@PROJECT_NAME@ CONFIG_MODE)
  4. if(NOT TARGET @PROJECT_NAME@::@NLOHMANN_JSON_TARGET_NAME@)
  5. include("${CMAKE_CURRENT_LIST_DIR}/@NLOHMANN_JSON_TARGETS_EXPORT_NAME@.cmake")
  6. if((NOT TARGET @NLOHMANN_JSON_TARGET_NAME@) AND
  7. (NOT @PROJECT_NAME@_FIND_VERSION OR
  8. @PROJECT_NAME@_FIND_VERSION VERSION_LESS 3.2.0))
  9. add_library(@NLOHMANN_JSON_TARGET_NAME@ INTERFACE IMPORTED)
  10. set_target_properties(@NLOHMANN_JSON_TARGET_NAME@ PROPERTIES
  11. INTERFACE_LINK_LIBRARIES @PROJECT_NAME@::@NLOHMANN_JSON_TARGET_NAME@
  12. )
  13. endif()
  14. endif()