cJSONConfig.cmake.in 802 字节
Newer Older
1 2 3 4
# Whether the utils lib was build.
set(CJSON_UTILS_FOUND @ENABLE_CJSON_UTILS@)

# The include directories used by cJSON
5 6
set(CJSON_INCLUDE_DIRS "@CMAKE_INSTALL_FULL_INCLUDEDIR@")
set(CJSON_INCLUDE_DIR "@CMAKE_INSTALL_FULL_INCLUDEDIR@")
7 8

get_filename_component(_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
M
Max Bruckner 已提交
9 10 11

# The cJSON library
set(CJSON_LIBRARY "@CJSON_LIB@")
12 13 14 15
if(@ENABLE_TARGET_EXPORT@)
  # Include the target
  include("${_dir}/cjson.cmake")
endif()
M
Max Bruckner 已提交
16 17 18 19 20 21

if(CJSON_UTILS_FOUND)
  # The cJSON utils library
  set(CJSON_UTILS_LIBRARY @CJSON_UTILS_LIB@)
  # All cJSON libraries
  set(CJSON_LIBRARIES "@CJSON_UTILS_LIB@" "@CJSON_LIB@")
22 23 24 25
  if(@ENABLE_TARGET_EXPORT@)
    # Include the target
    include("${_dir}/cjson_utils.cmake")
  endif()
M
Max Bruckner 已提交
26 27 28 29
else()
  # All cJSON libraries
  set(CJSON_LIBRARIES "@CJSON_LIB@")
endif()