summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/install/TARGETS-OPTIONAL.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/install/TARGETS-OPTIONAL.cmake')
-rw-r--r--Tests/RunCMake/install/TARGETS-OPTIONAL.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/install/TARGETS-OPTIONAL.cmake b/Tests/RunCMake/install/TARGETS-OPTIONAL.cmake
new file mode 100644
index 000000000..d3c5cdae2
--- /dev/null
+++ b/Tests/RunCMake/install/TARGETS-OPTIONAL.cmake
@@ -0,0 +1,4 @@
+enable_language(C)
+add_executable(myexe main.c)
+add_executable(notall EXCLUDE_FROM_ALL main.c)
+install(TARGETS myexe notall DESTINATION bin OPTIONAL)