Debian Codegraph @

cmake/ismrmrd_cpack.cmake

raw
1 ################################################################################
2 # Find available package generators
3 ################################################################################
4
5 if(UNIX)
6 # DEB
7 find_program(DPKG_PROGRAM dpkg)
8 if(EXISTS ${DPKG_PROGRAM})
9 list(APPEND CPACK_GENERATOR "DEB")
10 endif()
11 endif()
12
13 # Enable/Disable automatic search for dependencies:
14 set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
15
16 # Enable/Disable component install for CPack generator DEB
17 set(CPACK_DEB_COMPONENT_INSTALL OFF)
18 set(CPACK_DEB_PACKAGE_COMPONENT OFF)
19
20 # Set dependencies explicitly
21 set(CPACK_DEBIAN_PACKAGE_DEPENDS "libhdf5-7, libfftw3-3, libboost-program-options-dev")
22
23 # Where the package metadata are
24 set(ISMRMRD_CPACK_CFG_FILE "${PROJECT_BINARY_DIR}/cpack_options.cmake")
25
26 # Where the package to be installed
27 set(CPACK_PACKAGING_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
28 message("CPACK_PACKAGING_INSTALL_PREFIX: " ${CPACK_PACKAGING_INSTALL_PREFIX})
29
30 if(WIN32)
31 # NSLS
32 list(APPEND CPACK_GENERATOR "NSIS")
33 endif()
34
35 list(APPEND CPACK_SOURCE_GENERATOR "TGZ")
36 list(APPEND CPACK_SOURCE_GENERATOR "ZIP")
37 list(APPEND CPACK_SOURCE_IGNORE_FILES ";.git;.gitignore;todo.txt;_clang-format;build/")
38
39 # set dependencies explicitly
40 include(InstallRequiredSystemLibraries)