ImportedFrameworkTest.cmake 306 B

12345678910
  1. add_library(fw SHARED IMPORTED)
  2. set_target_properties(fw PROPERTIES
  3. FRAMEWORK TRUE
  4. IMPORTED_LOCATION "/no/exist/fw.framework/Versions/A/fw"
  5. IMPORTED_SONAME "@rpath/fw.framework/Versions/A/fw"
  6. )
  7. add_custom_target(print_fw ALL COMMAND
  8. ${CMAKE_COMMAND} -E echo "xxx$<TARGET_SONAME_FILE:fw>xxx"
  9. )