jsoncpp-namespaced-targets.cmake 360 B

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