| 1 |
# ############################################################################## |
| 2 |
# Copyright (C) Intel Corporation |
| 3 |
# |
| 4 |
# SPDX-License-Identifier: MIT |
| 5 |
# ############################################################################## |
| 6 |
|
| 7 |
# |
| 8 |
# Packaging |
| 9 |
# |
| 10 |
|
| 11 |
set(CPACK_GENERATOR "ZIP") |
| 12 |
set(CPACK_ARCHIVE_COMPONENT_INSTALL ON) |
| 13 |
|
| 14 |
set(CPACK_PACKAGE_DIRECTORY ${PROJECT_BINARY_DIR}) |
| 15 |
set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR}) |
| 16 |
set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR}) |
| 17 |
set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH}) |
| 18 |
|
| 19 |
set(VPL_COMPONENT_DEV dev) |
| 20 |
set(VPL_COMPONENT_LIB lib) |
| 21 |
set(VPL_COMPONENT_TOOLS tools) |
| 22 |
|
| 23 |
set(CPACK_COMPONENTS_ALL all ${VPL_COMPONENT_DEV} ${VPL_COMPONENT_LIB} |
| 24 |
${VPL_COMPONENT_TOOLS}) |
| 25 |
set(CPACK_COMPONENTS_GROUPING IGNORE) |
| 26 |
|
| 27 |
include(CPack) |
| 28 |
cpack_add_component(${VPL_COMPONENT_LIB}) |
| 29 |
cpack_add_component(${VPL_COMPONENT_DEV} DEPENDS ${VPL_COMPONENT_LIB}) |
| 30 |
cpack_add_component(${VPL_COMPONENT_TOOLS} DEPENDS ${VPL_COMPONENT_LIB}) |