summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack/tests/COMPONENTS_EMPTY_DIR/test.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CPack/tests/COMPONENTS_EMPTY_DIR/test.cmake')
-rw-r--r--Tests/RunCMake/CPack/tests/COMPONENTS_EMPTY_DIR/test.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/CPack/tests/COMPONENTS_EMPTY_DIR/test.cmake b/Tests/RunCMake/CPack/tests/COMPONENTS_EMPTY_DIR/test.cmake
index 9cd91af..1ad01c1 100644
--- a/Tests/RunCMake/CPack/tests/COMPONENTS_EMPTY_DIR/test.cmake
+++ b/Tests/RunCMake/CPack/tests/COMPONENTS_EMPTY_DIR/test.cmake
@@ -1,3 +1,13 @@
+if(GENERATOR_TYPE STREQUAL "DEB")
+ set(CPACK_PACKAGE_CONTACT "someone")
+ set(CPACK_DEB_COMPONENT_INSTALL "ON")
+ set(CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT")
+elseif(GENERATOR_TYPE STREQUAL "RPM")
+ set(CPACK_RPM_COMPONENT_INSTALL "ON")
+elseif(GENERATOR_TYPE STREQUAL "TGZ")
+ set(CPACK_ARCHIVE_COMPONENT_INSTALL "ON")
+endif()
+
set(CPACK_COMPONENTS_ALL test)
install(DIRECTORY DESTINATION empty
COMPONENT test)