File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,20 @@ SET(CPACK_COMPONENT_HEADERS_DEPENDS libraries)
262262SET (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
267280SET (CPACK_SOURCE_GENERATOR "SOURCE_ZIP" CACHE STRING "Default source package generator" )
268281SET (CPACK_SOURCE_PACKAGE_FILE_NAME "libnfc-${VERSION} " )
You can’t perform that action at this time.
0 commit comments