cJSONConfig.cmake.in 653 B

123456789101112131415161718192021222324
  1. # Whether the utils lib was build.
  2. set(CJSON_UTILS_FOUND @ENABLE_CJSON_UTILS@)
  3. # The include directories used by cJSON
  4. set(CJSON_INCLUDE_DIRS "@prefix@/@includedir@")
  5. get_filename_component(_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
  6. # The cJSON library
  7. set(CJSON_LIBRARY "@CJSON_LIB@")
  8. # Include the target
  9. include("${_dir}/cjson.cmake")
  10. if(CJSON_UTILS_FOUND)
  11. # The cJSON utils library
  12. set(CJSON_UTILS_LIBRARY @CJSON_UTILS_LIB@)
  13. # All cJSON libraries
  14. set(CJSON_LIBRARIES "@CJSON_UTILS_LIB@" "@CJSON_LIB@")
  15. # Include the target
  16. include("${_dir}/cjson_utils.cmake")
  17. else()
  18. # All cJSON libraries
  19. set(CJSON_LIBRARIES "@CJSON_LIB@")
  20. endif()