summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack/tests/COMPONENTS_EMPTY_DIR/test.cmake
blob: 1ad01c1104ee2dbb67433de21b5961a9214e0c86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)