• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Whether the utils lib was build.
2set(CJSON_UTILS_FOUND @ENABLE_CJSON_UTILS@)
3
4# The include directories used by cJSON
5set(CJSON_INCLUDE_DIRS "@CMAKE_INSTALL_FULL_INCLUDEDIR@")
6set(CJSON_INCLUDE_DIR "@CMAKE_INSTALL_FULL_INCLUDEDIR@")
7
8get_filename_component(_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
9
10# The cJSON library
11set(CJSON_LIBRARY "@CJSON_LIB@")
12if(@ENABLE_TARGET_EXPORT@)
13  # Include the target
14  include("${_dir}/cjson.cmake")
15endif()
16
17if(CJSON_UTILS_FOUND)
18  # The cJSON utils library
19  set(CJSON_UTILS_LIBRARY @CJSON_UTILS_LIB@)
20  # All cJSON libraries
21  set(CJSON_LIBRARIES "@CJSON_UTILS_LIB@" "@CJSON_LIB@")
22  if(@ENABLE_TARGET_EXPORT@)
23    # Include the target
24    include("${_dir}/cjson_utils.cmake")
25  endif()
26else()
27  # All cJSON libraries
28  set(CJSON_LIBRARIES "@CJSON_LIB@")
29endif()
30