diff options
author | Domen Vrankar <domen.vrankar@gmail.com> | 2016-11-26 19:08:25 (GMT) |
---|---|---|
committer | Domen Vrankar <domen.vrankar@gmail.com> | 2016-11-27 22:20:35 (GMT) |
commit | 6d51bea4e6ff058383e63c215ec5fb7fcab9870c (patch) | |
tree | bb1fc3a76009053694d0bda82bdf672aa7bac56c /Tests/RunCMake/CPack/tests/CUSTOM_NAMES | |
parent | 0f15aee799a0af9fe1999d5c071483c9660ccf5b (diff) | |
download | CMake-6d51bea4e6ff058383e63c215ec5fb7fcab9870c.zip CMake-6d51bea4e6ff058383e63c215ec5fb7fcab9870c.tar.gz CMake-6d51bea4e6ff058383e63c215ec5fb7fcab9870c.tar.bz2 |
Tests: CPack test merge generator specifics
Merge test generator specifics into
test itself.
Diffstat (limited to 'Tests/RunCMake/CPack/tests/CUSTOM_NAMES')
-rw-r--r-- | Tests/RunCMake/CPack/tests/CUSTOM_NAMES/test.cmake | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Tests/RunCMake/CPack/tests/CUSTOM_NAMES/test.cmake b/Tests/RunCMake/CPack/tests/CUSTOM_NAMES/test.cmake index 115864f..3185e9f 100644 --- a/Tests/RunCMake/CPack/tests/CUSTOM_NAMES/test.cmake +++ b/Tests/RunCMake/CPack/tests/CUSTOM_NAMES/test.cmake @@ -1,4 +1,17 @@ -set(CPACK_RPM_COMPONENT_INSTALL "ON") +if(GENERATOR_TYPE STREQUAL "DEB") + set(CPACK_PACKAGE_CONTACT "someone") + set(CPACK_DEB_COMPONENT_INSTALL "ON") + + set(CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT") + set(CPACK_DEBIAN_PKG_2_PACKAGE_NAME "second") + set(CPACK_DEBIAN_PKG_3_FILE_NAME "pkg_3_abc.deb") +elseif(GENERATOR_TYPE STREQUAL "RPM") + set(CPACK_RPM_COMPONENT_INSTALL "ON") + + set(CPACK_RPM_FILE_NAME "RPM-DEFAULT") + set(CPACK_RPM_PKG_2_PACKAGE_NAME "second") + set(CPACK_RPM_PKG_3_FILE_NAME "pkg_3_abc.rpm") +endif() install(FILES CMakeLists.txt DESTINATION foo COMPONENT pkg_1) install(FILES CMakeLists.txt DESTINATION foo COMPONENT pkg_2) |