2021-02-27 18:25:11 +01:00
|
|
|
cmake_policy(PUSH)
|
|
|
|
cmake_policy(VERSION 3.0)
|
|
|
|
|
|
|
|
@PACKAGE_INIT@
|
|
|
|
|
|
|
|
include ( "${CMAKE_CURRENT_LIST_DIR}/jsoncpp-targets.cmake" )
|
|
|
|
|
2021-02-27 22:35:57 +01:00
|
|
|
if(TARGET jsoncpp_static)
|
2021-04-02 22:30:43 +02:00
|
|
|
add_library(JsonCpp::JsonCpp INTERFACE IMPORTED )
|
|
|
|
set_target_properties(JsonCpp::JsonCpp PROPERTIES INTERFACE_LINK_LIBRARIES "jsoncpp_static")
|
2021-02-27 22:35:57 +01:00
|
|
|
elseif(TARGET jsoncpp_lib)
|
2021-04-02 22:30:43 +02:00
|
|
|
add_library(JsonCpp::JsonCpp INTERFACE IMPORTED )
|
|
|
|
set_target_properties(JsonCpp::JsonCpp PROPERTIES INTERFACE_LINK_LIBRARIES "jsoncpp_lib")
|
2021-02-27 22:35:57 +01:00
|
|
|
endif()
|
|
|
|
|
2021-02-27 18:25:11 +01:00
|
|
|
check_required_components(JsonCpp)
|
|
|
|
|
2021-02-28 00:25:48 +01:00
|
|
|
cmake_policy(POP)
|