Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions cmake/packageMacOS.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# Include the InstallRequiredSystemLibraries module.
include(InstallRequiredSystemLibraries)

# Set the CPack variables.
# Set CPack variables.
set(CPACK_PACKAGE_NAME ${CMAKE_PROJECT_NAME})
set(CPACK_PACKAGE_VERSION ${CMAKE_PROJECT_VERSION})
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${CMAKE_PROJECT_DESCRIPTION}")
Expand All @@ -12,5 +9,5 @@ set(CPACK_PACKAGE_DIRECTORY "${CMAKE_SOURCE_DIR}/setup/macos")
# Set package generator to Apple Disk Image.
set(CPACK_GENERATOR DragNDrop)

# Include the CPack module.
# Include CPack module.
include(CPack)
8 changes: 4 additions & 4 deletions cmake/packageUbuntu.cmake
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Set the CPack variables.
# Set CPack variables.
set(CPACK_PACKAGE_NAME ${CMAKE_PROJECT_NAME})
set(CPACK_PACKAGE_VERSION ${CMAKE_PROJECT_VERSION})
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${CMAKE_PROJECT_DESCRIPTION}")
set(CPACK_PACKAGE_VENDOR ${CPACK_PACKAGE_NAME})
set(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION})
set(CPACK_PACKAGE_DIRECTORY "${CMAKE_SOURCE_DIR}/setup/ubuntu")

# Set the CPack generator to DEB.
# Set CPack generator to DEB.
set(CPACK_GENERATOR DEB)

# Set the CPack variables for the DEB package.
# Set CPack variables for the DEB package.
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "${AUTHOR}")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>= 2.27)")
set(CPACK_DEBIAN_PACKAGE_SECTION utils)
Expand All @@ -19,5 +19,5 @@ set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA
"${CMAKE_SOURCE_DIR}/package/ubuntu/debian/postinst"
"${CMAKE_SOURCE_DIR}/package/ubuntu/debian/postrm")

# Include the CPack module.
# Include CPack module.
include(CPack)
8 changes: 4 additions & 4 deletions cmake/packageWindows.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Set the CPack variables.
# Set CPack variables.
set(CPACK_PACKAGE_NAME ${CMAKE_PROJECT_NAME})
set(CPACK_PACKAGE_VERSION ${CMAKE_PROJECT_VERSION})
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${CMAKE_PROJECT_DESCRIPTION}")
Expand All @@ -7,10 +7,10 @@ set(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION})
set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CPACK_PACKAGE_NAME})
set(CPACK_PACKAGE_DIRECTORY "${CMAKE_SOURCE_DIR}/setup/windows")

# Set the CPack generator to NSIS.
# Set CPack generator to NSIS.
set(CPACK_GENERATOR NSIS)

# Set the CPack variables for the NSIS package.
# Set CPack variables for the NSIS package.
set(CPACK_NSIS_MUI_ICON "${CMAKE_SOURCE_DIR}/package/windows/app.ico")
set(CPACK_NSIS_MUI_UNIICON "${CMAKE_SOURCE_DIR}/package/windows/app.ico")
set(CPACK_NSIS_DISPLAY_NAME ${CPACK_PACKAGE_NAME})
Expand All @@ -35,5 +35,5 @@ set(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "
Delete '${SMPROGRAMS}\\\\${CPACK_PACKAGE_NAME}.lnk'
Delete '${PDESKTOP}\\\\${CPACK_PACKAGE_NAME}.lnk'")

# Include the CPack module
# Include CPack module
include(CPack) # has to be after shortcuts instructions are set, otherwise the shortcuts won't be created