XcodeAttributeGenex.cmake 597 B

12345678910111213141516
  1. enable_language(C)
  2. add_executable(some main.c)
  3. add_executable(another main.c)
  4. set_target_properties(another PROPERTIES
  5. # per target attribute with genex
  6. XCODE_ATTRIBUTE_TEST_HOST "$<TARGET_FILE:some>"
  7. # per target attribute with variant
  8. XCODE_ATTRIBUTE_CONFIG_SPECIFIC[variant=Release] "release"
  9. XCODE_ATTRIBUTE_CONFIG_SPECIFIC "general")
  10. # global attribute with genex
  11. set(CMAKE_XCODE_ATTRIBUTE_ANOTHER_GLOBAL "$<TARGET_FILE:another>")
  12. # global attribute with variant
  13. set(CMAKE_XCODE_ATTRIBUTE_ANOTHER_CONFIG "general")
  14. set(CMAKE_XCODE_ATTRIBUTE_ANOTHER_CONFIG[variant=Debug] "debug")