summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Swift/CMP0157-common.cmake
blob: 53f14f65119c9e4be10384fa4001ff436f27c7ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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")