34 lines
1.8 KiB
CMake
34 lines
1.8 KiB
CMake
# SPDX-License-Identifier: GPL-3.0-or-later
|
||
# SPDX-FileCopyrightText: 2025 ai-ad4 and the FreePDFEditor contributors
|
||
# FreePDFEditorPackaging.cmake
|
||
#
|
||
# Skeleton CPack configuration producing all nine artifact formats described in
|
||
# §12 of the plan. The actual payloads (install rules for the Qt binary, ICU
|
||
# data, fonts, etc.) are wired up in §12.1–12.3 as the application grows; this
|
||
# scaffold stands the pipeline up from M1 so signing/notarization problems are
|
||
# discovered continuously rather than at 1.0.
|
||
|
||
set(CPACK_PACKAGE_NAME "freepdfeditor")
|
||
set(CPACK_PACKAGE_VENDOR "FreePDFEditor")
|
||
set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
|
||
set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
|
||
set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})
|
||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Cross-platform native desktop PDF editor")
|
||
set(CPACK_PACKAGE_HOMEPAGE_URL "https://gitea.lm.je/ai-ad4/freepdfeditor")
|
||
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSES/GPL-3.0-or-later.txt")
|
||
set(CPACK_PACKAGE_CONTACT "security@freepdfeditor.org")
|
||
set(CPACK_PACKAGE_INSTALL_DIRECTORY "FreePDFEditor")
|
||
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${PROJECT_VERSION}-${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}")
|
||
|
||
# Per-generator configuration lives next to this file. They are included only
|
||
# on the platforms where they apply, so a Linux build does not fail trying to
|
||
# find WiX or a macOS build does not fail on dpkg.
|
||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||
include("${CMAKE_CURRENT_LIST_DIR}/packaging/Linux.cmake")
|
||
elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||
include("${CMAKE_CURRENT_LIST_DIR}/packaging/Windows.cmake")
|
||
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||
include("${CMAKE_CURRENT_LIST_DIR}/packaging/macOS.cmake")
|
||
endif()
|
||
|
||
include(CPack) |