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.

19 lines
1.2 KiB

  1. # Version
  2. Include ( ${CMAKE_CURRENT_LIST_DIR}/nlohmann_json-version.cmake )
  3. Set ( NLOHMANN_JSON_VERSION_SHORT "${NLOHMANN_JSON_VERSION_MAJOR}.${NLOHMANN_JSON_VERSION_MINOR}" )
  4. Set ( NLOHMANN_JSON_VERSION_MID "${NLOHMANN_JSON_VERSION_SHORT}.${NLOHMANN_JSON_VERSION_PATCH}" )
  5. Set ( NLOHMANN_JSON_VERSION "${NLOHMANN_JSON_VERSION_MID}.${NLOHMANN_JSON_VERSION_BUILD}" )
  6. Set ( NLOHMANN_JSON_NAME "nlohmann_json-${NLOHMANN_JSON_VERSION_MID}" )
  7. Set ( NLOHMANN_JSON_OUTPUTNAME "nlohmann_json" )
  8. # Install directories
  9. Set ( NLOHMANN_JSON_INSTALL_DIR_INCLUDE "include/${NLOHMANN_JSON_NAME}" )
  10. Set ( NLOHMANN_JSON_INSTALL_DIR_LIB "lib" )
  11. Set ( NLOHMANN_JSON_INSTALL_DIR_SHARE "share/${NLOHMANN_JSON_NAME}" )
  12. # C Standard
  13. Set ( CMAKE_C_STANDARD 11 )
  14. Set ( CMAKE_CXX_STANDARD 17 )
  15. Set ( CMAKE_C_STANDARD_REQUIRED ON )
  16. Set ( CMAKE_CXX_STANDARD_REQUIRED ON )