cJSONConfig.cmake.in 802 B

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