-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeCPack.cmake
35 lines (34 loc) · 1.24 KB
/
CMakeCPack.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Inspired by `CMake Cookbook – Radovan Bast`
set(CPACK_ARCHIVE_COMPONENT_INSTALL "ON")
set(CPACK_PACKAGE_VENDOR "Coveo")
set(CPACK_PACKAGE_DESCRIPTION_FILE "${PROJECT_SOURCE_DIR}/README.md")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Hareflow")
set(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE")
set(CPACK_PACKAGING_INSTALL_PREFIX "")
set(CPACK_SOURCE_IGNORE_FILES "${PROJECT_BINARY_DIR};/.git/;.gitignore")
set(CPACK_SOURCE_GENERATOR "TGZ")
set(CPACK_GENERATOR "TGZ")
if(CMAKE_SYSTEM_NAME MATCHES "Linux") # Important: could be on macOS
list(APPEND CPACK_GENERATOR "DEB")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "coveo")
set(CPACK_DEBIAN_PACKAGE_DEPENDS
libboost-chrono1.71.0
libboost-container1.71.0
libboost-context1.71.0
libboost-coroutine1.71.0
libboost-date-time1.71.0
libboost-exception1.71.0
libboost-regex1.71.0
libboost-system1.71.0
libfmt-dev
libqpid-proton11
)
endif()
if(WIN32 OR MINGW)
list(APPEND CPACK_GENERATOR "NSIS")
set(CPACK_NSIS_PACKAGE_NAME "${PROJECT_NAME}")
set(CPACK_NSIS_CONTACT "coveo")
set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON)
endif()
message(VERBOSE "CPack generators: ${CPACK_GENERATOR}")
include(CPack)