jsoncpp/jsoncppConfig.cmake.in
Sergey Rachev 62f3e03475 - declare namespaced export target to simplify the library usage
When the static libary is available use it as exported alias, otherwise use shared library. Cmake takes care about import library when Windows platform DLL is used
2021-05-04 23:34:28 -05:00

16 lines
347 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 ALIAS jsoncpp_static)
elseif(TARGET jsoncpp_lib)
add_library(JsonCpp::JsonCpp ALIAS jsoncpp_lib)
endif()
check_required_components(JsonCpp)
cmake_policy(POP)