cmake/Tests/RunCMake/Swift/CMP0157-common.cmake
2024-04-14 22:45:38 +02:00

20 lines
635 B
CMake

enable_language(Swift)
add_executable(greetings_default hello.swift)
add_executable(greetings_wmo hello.swift)
set_target_properties(greetings_wmo PROPERTIES
Swift_COMPILATION_MODE "wholemodule")
add_executable(greetings_incremental hello.swift)
set_target_properties(greetings_incremental PROPERTIES
Swift_COMPILATION_MODE "incremental")
add_executable(greetings_singlefile hello.swift)
set_target_properties(greetings_singlefile PROPERTIES
Swift_COMPILATION_MODE "singlefile")
add_executable(greetings_who_knows hello.swift)
set_target_properties(greetings_who_knows PROPERTIES
Swift_COMPILATION_MODE "not-a-real-mode")