1if (TARGET jsoncpp_static) 2 add_library(JsonCpp::JsonCpp INTERFACE IMPORTED) 3 set_target_properties(JsonCpp::JsonCpp PROPERTIES INTERFACE_LINK_LIBRARIES "jsoncpp_static") 4elseif (TARGET jsoncpp_lib) 5 add_library(JsonCpp::JsonCpp INTERFACE IMPORTED) 6 set_target_properties(JsonCpp::JsonCpp PROPERTIES INTERFACE_LINK_LIBRARIES "jsoncpp_lib") 7endif ()