mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-23 23:18:38 -06:00
CPack tests can now define one or more packaging types and that test will be executed once per generator per packaging type. This also enables us to set default values per packaging type for each generator which makes tests shorter.
15 lines
426 B
CMake
15 lines
426 B
CMake
if(GENERATOR_TYPE STREQUAL "DEB" OR GENERATOR_TYPE STREQUAL "RPM")
|
|
if(GENERATOR_TYPE STREQUAL "DEB")
|
|
set(generator_type_suffix_ "IAN") # not entirely compatible...
|
|
endif()
|
|
|
|
set(CPACK_${GENERATOR_TYPE}${generator_type_suffix_}_FILE_NAME "${GENERATOR_TYPE}-DEFAULT")
|
|
endif()
|
|
|
|
install(DIRECTORY DESTINATION empty
|
|
COMPONENT test)
|
|
|
|
if(PACKAGING_TYPE STREQUAL "COMPONENT")
|
|
set(CPACK_COMPONENTS_ALL test)
|
|
endif()
|