set CPACK_PACKAGING_INSTALL_PREFIX to /usr as well

This commit is contained in:
Fabian Greffrath 2023-08-22 09:29:51 +02:00
parent b7c669c47c
commit 2546592066

View File

@ -126,6 +126,7 @@ if(WIN32)
elseif(LINUX)
set(CPACK_GENERATOR External)
set(CPACK_EXTERNAL_ENABLE_STAGING YES)
set(CPACK_PACKAGING_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
set(CPACK_EXTERNAL_PACKAGE_SCRIPT "${PROJECT_BINARY_DIR}/appimage-generate.cmake")
file(GENERATE
@ -154,8 +155,8 @@ elseif(LINUX)
--appimage-extract-and-run
--appdir=${CPACK_TEMPORARY_DIRECTORY}
--executable=$<TARGET_FILE:woof>
--desktop-file=${CPACK_TEMPORARY_DIRECTORY}/share/applications/io.github.fabiangreffrath.woof.desktop
--icon-file=${CPACK_TEMPORARY_DIRECTORY}/share/icons/hicolor/128x128/apps/woof.png
--desktop-file=${CPACK_TEMPORARY_DIRECTORY}/usr/share/applications/io.github.fabiangreffrath.woof.desktop
--icon-file=${CPACK_TEMPORARY_DIRECTORY}/usr/share/icons/hicolor/128x128/apps/woof.png
--output=appimage)
]])
else()