mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-03 16:01:18 -05:00
a80db10217
Added a manpages sub-project to generate man pages for wsjtx from AsciiDoc source. Add items required by Debian packaging and Free Desktop Standards. Add better command line processing to wsjtx including version and help options. Add a new command line option 'test-mode' that invokes the Qt test mode where all writable file locations are moved to a common directory. This is to allow application testing from a repeatable start point rather than have the test application sharing files with normal operations. See QStandardPaths::setTestModeEnabled() for details of the test location. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4046 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
86 lines
3.6 KiB
CMake
86 lines
3.6 KiB
CMake
# This file is configured at cmake time, and loaded at cpack time.
|
|
# To pass variables to cpack from cmake, they must be configured
|
|
# in this file.
|
|
|
|
set (CPACK_PACKAGE_VENDOR "@PROJECT_VENDOR@")
|
|
set (CPACK_PACKAGE_CONTACT "@PROJECT_CONTACT@")
|
|
set (CPACK_PACKAGE_DESCRIPTION_FILE "@PROJECT_SOURCE_DIR@/Copyright.txt")
|
|
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "@PROJECT_SUMMARY_DESCRIPTION@")
|
|
set (CPACK_RESOURCE_FILE_LICENSE "@PROJECT_SOURCE_DIR@/license.txt")
|
|
set (CPACK_PACKAGE_INSTALL_DIRECTORY ${CPACK_PACKAGE_NAME})
|
|
set (CPACK_PACKAGE_EXECUTABLES wsjtx "WSJT-X")
|
|
set (CPACK_CREATE_DESKTOP_LINKS wsjtx)
|
|
set (CPACK_STRIP_FILES TRUE)
|
|
|
|
#
|
|
# components
|
|
#
|
|
set (CPACK_COMPONENTS_ALL Runtime)
|
|
#set (CPACK_COMPONENT_APPLICATIONS_DISPLAY_NAME "WSJT-X Application")
|
|
#set (CPACK_COMPONENT_APPLICATIONS_DESCRIPTION "@WSJTX_DESCRIPTION_SUMMARY@")
|
|
|
|
if (CPACK_GENERATOR MATCHES "NSIS")
|
|
set (CPACK_STRIP_FILES FALSE) # breaks Qt packaging on Windows
|
|
|
|
set (CPACK_NSIS_INSTALL_ROOT "C:\\WSJT")
|
|
|
|
# set the install/unistall icon used for the installer itself
|
|
# There is a bug in NSI that does not handle full unix paths properly.
|
|
set (CPACK_NSIS_MUI_ICON "@PROJECT_SOURCE_DIR@/icons/windows-icons\\wsjtx.ico")
|
|
set (CPACK_NSIS_MUI_UNIICON "@PROJECT_SOURCE_DIR@/icons/windows-icons\\wsjtx.ico")
|
|
# set the package header icon for MUI
|
|
set (CPACK_PACKAGE_ICON "@PROJECT_SOURCE_DIR@/icons/windows-icons\\installer_logo.bmp")
|
|
# tell cpack to create links to the doc files
|
|
set (CPACK_NSIS_MENU_LINKS
|
|
"@PROJECT_MANUAL@" "WSJT-X Documentation"
|
|
"@PROJECT_HOMEPAGE@" "WSJT-X Web Site"
|
|
)
|
|
# Use the icon from wsjtx for add-remove programs
|
|
set (CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\wsjtx.exe")
|
|
|
|
set (CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_DESCRIPTION_SUMMARY}")
|
|
set (CPACK_NSIS_HELP_LINK "@PROJECT_MANUAL@")
|
|
set (CPACK_NSIS_URL_INFO_ABOUT "@PROJECT_HOMEPAGE@")
|
|
set (CPACK_NSIS_CONTACT "${CPACK_PACKAGE_CONTACT}")
|
|
set (CPACK_NSIS_MUI_FINISHPAGE_RUN "wsjtx.exe")
|
|
set (CPACK_NSIS_MODIFY_PATH ON)
|
|
endif ()
|
|
|
|
if ("${CPACK_GENERATOR}" STREQUAL "PackageMaker")
|
|
set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-pkg")
|
|
set (CPACK_PACKAGE_DEFAULT_LOCATION "/Applications")
|
|
set (CPACK_PACKAGING_INSTALL_PREFIX "/")
|
|
endif ()
|
|
|
|
if ("${CPACK_GENERATOR}" STREQUAL "DragNDrop")
|
|
set (CPACK_DMG_BACKGROUND_IMAGE "@PROJECT_SOURCE_DIR@/icons/Darwin/DragNDrop Background.png")
|
|
set (CPACK_DMG_DS_STORE "@PROJECT_SOURCE_DIR@/wsjtx_DMG.DS_Store")
|
|
set (CPACK_BUNDLE_NAME "@WSJTX_BUNDLE_NAME@")
|
|
set (CPACK_PACKAGE_ICON "@PROJECT_BINARY_DIR@/wsjtx.icns")
|
|
set (CPACK_BUNDLE_ICON "@PROJECT_BINARY_DIR@/wsjtx.icns")
|
|
set (CPACK_BUNDLE_STARTUP_COMMAND "@PROJECT_SOURCE_DIR@/Mac-wsjtx-startup.sh")
|
|
endif ()
|
|
|
|
if ("${CPACK_GENERATOR}" STREQUAL "WIX")
|
|
# Reset CPACK_PACKAGE_VERSION to deal with WiX restriction.
|
|
# But the file names still use the full CMake_VERSION value:
|
|
set (CPACK_PACKAGE_FILE_NAME
|
|
"${CPACK_PACKAGE_NAME}-@wsjtx_VERSION@-${CPACK_SYSTEM_NAME}")
|
|
set (CPACK_SOURCE_PACKAGE_FILE_NAME
|
|
"${CPACK_PACKAGE_NAME}-@wsjtx_VERSION@-Source")
|
|
|
|
if (NOT CPACK_WIX_SIZEOF_VOID_P)
|
|
set (CPACK_WIX_SIZEOF_VOID_P "@CMAKE_SIZEOF_VOID_P@")
|
|
endif ()
|
|
endif ()
|
|
|
|
if ("${CPACK_GENERATOR}" STREQUAL "DEB")
|
|
set (CPACK_DEBIAN_PACKAGE_DESCRIPTION "@PROJECT_DESCRIPTION@")
|
|
set (CPACK_PACKAGE_FILE_NAME "@DEBIAN_PACKAGE_FILE_NAME@")
|
|
set (CPACK_DEBIAN_PACKAGE_HOMEPAGE "@PROJECT_HOMEPAGE@")
|
|
set (CPACK_DEBIAN_PACKAGE_DEPENDS "libgfortran3 (>=4.8.2), libqt5multimedia5-plugins (>=5), libqt5widgets5 (>=5), libc6 (>=2.19)")
|
|
set (CPACK_COMPONENTS_ALL ${CPACK_COMPONENTS_ALL} Debian)
|
|
endif ("${CPACK_GENERATOR}" STREQUAL "DEB")
|
|
|
|
message (STATUS "CMAKE_INSTALL_PREFIX: ${CMAKE_INSTALL_PREFIX}")
|