summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/install/TARGETS-EXCLUDE_FROM_ALL.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-02-03 19:10:55 (GMT)
committerBrad King <brad.king@kitware.com>2016-02-04 14:47:57 (GMT)
commitd321c196a0bfb58ff8a32ed14552d1b78b24cf8a (patch)
treed999efdc700dd168129d86197b24ced543d6c4d4 /Tests/RunCMake/install/TARGETS-EXCLUDE_FROM_ALL.cmake
parent18ce97c4a20b7da4e11006ad80f17cb55e128db1 (diff)
downloadCMake-d321c196a0bfb58ff8a32ed14552d1b78b24cf8a.zip
CMake-d321c196a0bfb58ff8a32ed14552d1b78b24cf8a.tar.gz
CMake-d321c196a0bfb58ff8a32ed14552d1b78b24cf8a.tar.bz2
Tests: Add cases for install() command EXCLUDE_FROM_ALL option
Diffstat (limited to 'Tests/RunCMake/install/TARGETS-EXCLUDE_FROM_ALL.cmake')
-rw-r--r--Tests/RunCMake/install/TARGETS-EXCLUDE_FROM_ALL.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/install/TARGETS-EXCLUDE_FROM_ALL.cmake b/Tests/RunCMake/install/TARGETS-EXCLUDE_FROM_ALL.cmake
new file mode 100644
index 0000000..6fb2036
--- /dev/null
+++ b/Tests/RunCMake/install/TARGETS-EXCLUDE_FROM_ALL.cmake
@@ -0,0 +1,5 @@
+enable_language(C)
+add_executable(myexe main.c)
+install(TARGETS myexe DESTINATION bin-all)
+install(TARGETS myexe DESTINATION bin-uns EXCLUDE_FROM_ALL)
+install(TARGETS myexe DESTINATION bin-exc EXCLUDE_FROM_ALL COMPONENT exc)