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) |
| 9 | add_library(JsonCpp::JsonCpp ALIAS jsoncpp_static) |
| 10 | elseif(TARGET jsoncpp_lib) |
| 11 | add_library(JsonCpp::JsonCpp ALIAS jsoncpp_lib) |
| 12 | endif() |
| 13 | |
Sergey Rachev | b640795 | 2021-02-27 18:25:11 +0100 | [diff] [blame] | 14 | check_required_components(JsonCpp) |
| 15 | |
Sergey Rachev | cee42e0 | 2021-02-28 00:25:48 +0100 | [diff] [blame] | 16 | cmake_policy(POP) |