cJSONConfig.cmake.in 700 B

12345678910111213141516171819202122232425
  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. set(CJSON_INCLUDE_DIR "@prefix@/@includedir@")
  6. get_filename_component(_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
  7. # The cJSON library
  8. set(CJSON_LIBRARY "@CJSON_LIB@")
  9. # Include the target
  10. include("${_dir}/cjson.cmake")
  11. if(CJSON_UTILS_FOUND)
  12. # The cJSON utils library
  13. set(CJSON_UTILS_LIBRARY @CJSON_UTILS_LIB@)
  14. # All cJSON libraries
  15. set(CJSON_LIBRARIES "@CJSON_UTILS_LIB@" "@CJSON_LIB@")
  16. # Include the target
  17. include("${_dir}/cjson_utils.cmake")
  18. else()
  19. # All cJSON libraries
  20. set(CJSON_LIBRARIES "@CJSON_LIB@")
  21. endif()