INCLUDE(CPackConfig.cmake) set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-test") set(CPACK_ARCHIVE_COMPONENT_INSTALL ON) set(CPACK_COMPONENTS_GROUPING ALL_COMPONENTS_IN_ONE) SET(CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY ON) SET(CPACK_COMPONENTS_ALL Test)