Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
Co-authored-by: Markus Werle <[email protected]>
  • Loading branch information
ikspress-archive and daixtrose authored Aug 6, 2024
1 parent 44f54a9 commit 1584a97
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,20 @@ SET(CPACK_COMPONENT_HEADERS_DEPENDS libraries)
SET(CPACK_COMPONENT_EXAMPLES_DEPENDS libraries)

# Binary Package
SET(CPACK_GENERATOR "ZIP" CACHE STRING "Default binary package generator")
if(WIN32)
set(CPACK_GENERATOR ZIP WIX)
elseif(APPLE)
set(CPACK_GENERATOR TGZ productbuild)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(CPACK_GENERATOR TGZ RPM DEB)

# Automatically include runtime dependencies (libc, libstdc++) fro Debian
# (RPM includes these dependencies automagically)
# YMMV, therefore commented
# set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS "TRUE")
else()
set(CPACK_GENERATOR TGZ)
endif()
# Source Package
SET(CPACK_SOURCE_GENERATOR "SOURCE_ZIP" CACHE STRING "Default source package generator")
SET(CPACK_SOURCE_PACKAGE_FILE_NAME "libnfc-${VERSION}")
Expand Down

0 comments on commit 1584a97

Please sign in to comment.