Skip to content

Commit 1584a97

Browse files
ikspressdaixtrose
andauthored
Update CMakeLists.txt
Co-authored-by: Markus Werle <daixtrose@users.noreply.github.com>
1 parent 44f54a9 commit 1584a97

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

CMakeLists.txt

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,20 @@ SET(CPACK_COMPONENT_HEADERS_DEPENDS libraries)
262262
SET(CPACK_COMPONENT_EXAMPLES_DEPENDS libraries)
263263

264264
# Binary Package
265-
SET(CPACK_GENERATOR "ZIP" CACHE STRING "Default binary package generator")
265+
if(WIN32)
266+
set(CPACK_GENERATOR ZIP WIX)
267+
elseif(APPLE)
268+
set(CPACK_GENERATOR TGZ productbuild)
269+
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
270+
set(CPACK_GENERATOR TGZ RPM DEB)
271+
272+
# Automatically include runtime dependencies (libc, libstdc++) fro Debian
273+
# (RPM includes these dependencies automagically)
274+
# YMMV, therefore commented
275+
# set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS "TRUE")
276+
else()
277+
set(CPACK_GENERATOR TGZ)
278+
endif()
266279
# Source Package
267280
SET(CPACK_SOURCE_GENERATOR "SOURCE_ZIP" CACHE STRING "Default source package generator")
268281
SET(CPACK_SOURCE_PACKAGE_FILE_NAME "libnfc-${VERSION}")

0 commit comments

Comments
 (0)