summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Swift/CMP0157-common.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/Swift/CMP0157-common.cmake')
-rw-r--r--Tests/RunCMake/Swift/CMP0157-common.cmake19
1 files changed, 19 insertions, 0 deletions
diff --git a/Tests/RunCMake/Swift/CMP0157-common.cmake b/Tests/RunCMake/Swift/CMP0157-common.cmake
new file mode 100644
index 0000000..53f14f6
--- /dev/null
+++ b/Tests/RunCMake/Swift/CMP0157-common.cmake
@@ -0,0 +1,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")