mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-13 10:22:55 +01:00
19 lines
540 B
CMake
19 lines
540 B
CMake
cmake_policy(PUSH)
|
|
cmake_policy(VERSION 3.0)
|
|
|
|
@PACKAGE_INIT@
|
|
|
|
include ( "${CMAKE_CURRENT_LIST_DIR}/jsoncpp-targets.cmake" )
|
|
|
|
if(TARGET jsoncpp_static)
|
|
add_library(JsonCpp::JsonCpp INTERFACE IMPORTED )
|
|
set_target_properties(JsonCpp::JsonCpp PROPERTIES INTERFACE_LINK_LIBRARIES "jsoncpp_static")
|
|
elseif(TARGET jsoncpp_lib)
|
|
add_library(JsonCpp::JsonCpp INTERFACE IMPORTED )
|
|
set_target_properties(JsonCpp::JsonCpp PROPERTIES INTERFACE_LINK_LIBRARIES "jsoncpp_lib")
|
|
endif()
|
|
|
|
check_required_components(JsonCpp)
|
|
|
|
cmake_policy(POP)
|