- isolated namespace targets into separate file

This commit is contained in:
Sergey Rachev
2021-04-14 20:50:43 +02:00
committed by Christopher Dunn
parent 2af4a4c6c8
commit 993e4e2828
3 changed files with 9 additions and 8 deletions

View File

@@ -0,0 +1,7 @@
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 ()