summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack/tests/VERSION/test.cmake
blob: 301ab612651ff3677f9c891cff7b9592544fd42f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
install(FILES CMakeLists.txt DESTINATION foo COMPONENT test)

if(GENERATOR_TYPE STREQUAL "DEB")
  set(package_type_ "DEBIAN")
  set(CPACK_DEBIAN_PACKAGE_RELEASE "1")
else()
  set(package_type_ "${GENERATOR_TYPE}")
endif()

set(CPACK_${package_type_}_PACKAGE_EPOCH "3")

if(PACKAGING_TYPE STREQUAL "COMPONENT")
  set(CPACK_COMPONENTS_ALL test)
endif()