summaryrefslogtreecommitdiffstats
path: root/Tests/CPackComponentsPrefix/CMakeLists.txt
blob: 207dae855a1b65ccbb142215df530101c5467e49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
cmake_minimum_required(VERSION 3.2)
project(CPackComponentsPrefix NONE)

install(FILES file-runtime.txt
        DESTINATION bin COMPONENT Runtime)
install(FILES file-development.txt
        DESTINATION lib COMPONENT Development)

set(CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY 1)
set(CPACK_COMPONENTS_ALL Development)
set(CPACK_ARCHIVE_COMPONENT_INSTALL 1)
set(CPACK_PACKAGING_INSTALL_PREFIX "/opt/My-1.0")
include(CPack)