Skip to content

Commit ae9586c

Browse files
committed
Add debian packaging support to CMakeLists
1 parent 468a5a9 commit ae9586c

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,15 @@ if(WIN32)
168168
set(CPACK_GENERATOR "NSIS")
169169
endif()
170170

171+
if(UNIX AND NOT APPLE)
172+
# Temporarily setting to DEB. Will support RPMs in the future.
173+
set(CPACK_GENERATOR "DEB")
174+
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Shriram Ravindranathan <s20n@ters.dev>")
175+
set(CPACK_DEBIAN_PACKAGE_DEBUG ON)
176+
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
177+
set(CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS ON)
178+
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
179+
set(CPACK_SET_DESTDIR ON)
180+
endif()
181+
171182
include(CPack)

0 commit comments

Comments
 (0)