diff options
Diffstat (limited to 'net/libarcus/files/CPackConfig.cmake')
-rw-r--r-- | net/libarcus/files/CPackConfig.cmake | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/net/libarcus/files/CPackConfig.cmake b/net/libarcus/files/CPackConfig.cmake new file mode 100644 index 000000000000..bd1680e6cdc6 --- /dev/null +++ b/net/libarcus/files/CPackConfig.cmake @@ -0,0 +1,24 @@ +set(CPACK_PACKAGE_VENDOR "Ultimaker") +set(CPACK_PACKAGE_CONTACT "Ruben Dulek <r.dulek@ultimaker.com>") +set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "libArcus Communication library") +if(NOT DEFINED CPACK_PACKAGE_VERSION) + set(CPACK_PACKAGE_VERSION "15.05.91") +endif() +set(CPACK_GENERATOR "DEB") +if(NOT DEFINED CPACK_DEBIAN_PACKAGE_ARCHITECTURE) + execute_process(COMMAND dpkg --print-architecture OUTPUT_VARIABLE CPACK_DEBIAN_PACKAGE_ARCHITECTURE OUTPUT_STRIP_TRAILING_WHITESPACE) +endif() +set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}") + +set(DEB_DEPENDS + "python3 (>= 3.4.0)" + "libgcc1 (>= 4.9.0)" + "libstdc++6 (>= 4.9.0)" + "libc6 (>= 2.19)" + "zlib1g (>= 1.2.0)" + "protobuf (>= 3.0.0)" +) +string(REPLACE ";" ", " DEB_DEPENDS "${DEB_DEPENDS}") +set(CPACK_DEBIAN_PACKAGE_DEPENDS ${DEB_DEPENDS}) + +include(CPack) |