You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
969 B

  1. # Interface Library ###############################################################################
  2. Set ( NLOHMANN_JSON_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../include )
  3. Add_Library ( nlohmann_json INTERFACE )
  4. Target_Include_Directories ( nlohmann_json
  5. INTERFACE
  6. $<BUILD_INTERFACE:${NLOHMANN_JSON_INCLUDE_DIR}>
  7. $<INSTALL_INTERFACE:${NLOHMANN_JSON_INSTALL_DIR_INCLUDE}> )
  8. # Install #########################################################################################
  9. # Header
  10. Install ( DIRECTORY ${NLOHMANN_JSON_INCLUDE_DIR}/nlohman
  11. DESTINATION ${NLOHMANN_JSON_INSTALL_DIR_INCLUDE} )
  12. Install ( TARGETS nlohmann_json
  13. EXPORT nlohmann_json
  14. DESTINATION ${NLOHMANN_JSON_INSTALL_DIR_INCLUDE} )