~zeal-developers/zeal/zeal

« back to all changes in this revision

Viewing changes to src/app/CMakeLists.txt

  • Committer: Oleg Shparber
  • Date: 2023-09-11 05:26:34 UTC
  • Revision ID: git-v1:f87563b3bf934a2609df07725a5cbcac6c06e6bf
cmake(build): include OS and architecture in package name

Windows only for now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
set(CPACK_PACKAGE_DESCRIPTION ${CMAKE_PROJECT_DESCRIPTION})
109
109
set(CPACK_PACKAGE_VENDOR ${PROJECT_COMPANY_NAME})
110
110
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
111
 
set(CPACK_PACKAGE_FILE_NAME "${_project_output_name}-${ZEAL_VERSION_FULL}")
112
111
set(CPACK_PACKAGE_ICON "${CMAKE_SOURCE_DIR}/src/app/resources/zeal.ico")
113
112
 
 
113
# Set binary package file name.
 
114
if(WIN32)
 
115
    if(CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64")
 
116
        set(_package_file_name_suffix "-windows-x64")
 
117
    elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "IA64")
 
118
        set(_package_file_name_suffix "-windows-x64")
 
119
    elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "X86")
 
120
        set(_package_file_name_suffix "-windows-x86")
 
121
    elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "ARM64")
 
122
        set(_package_file_name_suffix "-windows-arm64")
 
123
    else()
 
124
        set(_package_file_name_suffix "-windows-unknown")
 
125
    endif()
 
126
endif()
 
127
set(CPACK_PACKAGE_FILE_NAME "${_project_output_name}-${ZEAL_VERSION_FULL}${_package_file_name_suffix}")
 
128
 
114
129
set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CPACK_PACKAGE_NAME})
115
130
set(CPACK_PACKAGE_EXECUTABLES ${_project_output_name} ${CPACK_PACKAGE_NAME})
116
131
set(CPACK_CREATE_DESKTOP_LINKS ${_project_output_name} ${CPACK_PACKAGE_NAME})