Sergey Rachev | b640795 | 2021-02-27 18:25:11 +0100 | [diff] [blame] | 1 | cmake_policy(PUSH) |
| 2 | cmake_policy(VERSION 3.0) |
| 3 | |
| 4 | @PACKAGE_INIT@ |
| 5 | |
| 6 | include ( "${CMAKE_CURRENT_LIST_DIR}/jsoncpp-targets.cmake" ) |
| 7 | |
Sergey Rachev | 62f3e03 | 2021-02-27 22:35:57 +0100 | [diff] [blame] | 8 | if(TARGET jsoncpp_static) |
Sergey Rachev | 2af4a4c | 2021-04-02 22:30:43 +0200 | [diff] [blame^] | 9 | add_library(JsonCpp::JsonCpp INTERFACE IMPORTED ) |
| 10 | set_target_properties(JsonCpp::JsonCpp PROPERTIES INTERFACE_LINK_LIBRARIES "jsoncpp_static") |
Sergey Rachev | 62f3e03 | 2021-02-27 22:35:57 +0100 | [diff] [blame] | 11 | elseif(TARGET jsoncpp_lib) |
Sergey Rachev | 2af4a4c | 2021-04-02 22:30:43 +0200 | [diff] [blame^] | 12 | add_library(JsonCpp::JsonCpp INTERFACE IMPORTED ) |
| 13 | set_target_properties(JsonCpp::JsonCpp PROPERTIES INTERFACE_LINK_LIBRARIES "jsoncpp_lib") |
Sergey Rachev | 62f3e03 | 2021-02-27 22:35:57 +0100 | [diff] [blame] | 14 | endif() |
| 15 | |
Sergey Rachev | b640795 | 2021-02-27 18:25:11 +0100 | [diff] [blame] | 16 | check_required_components(JsonCpp) |
| 17 | |
Sergey Rachev | cee42e0 | 2021-02-28 00:25:48 +0100 | [diff] [blame] | 18 | cmake_policy(POP) |