mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-23 01:44:35 +08:00
1b735a5c17
as we now support cJSON and json-c we need to wrap the functions we use. also allows drop in replacements for older cJSON versions lacking certain functions.
20 lines
593 B
CMake
20 lines
593 B
CMake
include(CMakeFindDependencyMacro)
|
|
if(NOT "@WITH_JSON_DISABLED@" AND NOT "@BUILD_SHARED_LIBS@")
|
|
if("@JSONC_FOUND@" AND NOT "@WITH_CJSON_REQUIRED@")
|
|
find_dependency(JSONC)
|
|
elseif("@CJSON_FOUND@")
|
|
find_dependency(cJSON)
|
|
endif()
|
|
endif()
|
|
|
|
@PACKAGE_INIT@
|
|
|
|
set(WinPR_VERSION_MAJOR "@WINPR_VERSION_MAJOR@")
|
|
set(WinPR_VERSION_MINOR "@WINPR_VERSION_MINOR@")
|
|
set(WinPR_VERSION_REVISION "@WINPR_VERSION_REVISION@")
|
|
set(WITH_WINPR_JSON "@WITH_WINPR_JSON@")
|
|
|
|
set_and_check(WinPR_INCLUDE_DIR "@PACKAGE_WINPR_INCLUDE_DIR@")
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/WinPRTargets.cmake")
|