aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-07-28 19:05:25 +0000
committersaturneric <[email protected]>2024-07-28 19:05:25 +0000
commitafe9e648b51ad84c82f859e013d2b527fa0e4aae (patch)
treee36b9afda7ff07c03bf0ced23a53b5c8da900c85 /src
parentfix: application should link gpgfrontend_core (diff)
downloadGpgFrontend-dev/2.1.3/main.tar.gz
GpgFrontend-dev/2.1.3/main.zip
fix: try to fix build process of git actionsdev/2.1.3/main
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index c63724a9..b6702191 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -313,11 +313,11 @@ if (BUILD_APPLICATION)
add_executable(${AppName} WIN32 ${BASE_SOURCE} ${RESOURCE_FILES})
# include qt dependencies
if(NOT Qt6_DIR)
- add_custom_command(TARGET ${AppName} POST_BUILD
- COMMAND windeployqt --force ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${AppName}.exe)
+ add_custom_command(TARGET ${AppName} POST_BUILD
+ COMMAND windeployqt --force --libdir ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} --release ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${AppName}.exe)
else()
add_custom_command(TARGET ${AppName} POST_BUILD
- COMMAND windeployqt-qt6.exe --force ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${AppName}.exe)
+ COMMAND windeployqt-qt6.exe --force --libdir ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} --release ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${AppName}.exe)
endif()
elseif (LINUX AND NOT LINUX_INSTALL_SOFTWARE)
add_executable(${AppName} ${BASE_SOURCE} ${RESOURCE_FILES})
@@ -328,16 +328,6 @@ if (BUILD_APPLICATION)
COMMENT "Copying Binary into App Image"
)
- add_custom_command(TARGET ${AppName} POST_BUILD
- COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AppDir/usr/modules"
- COMMENT "Complement to build the required architecture"
- )
-
- add_custom_command(TARGET ${AppName} POST_BUILD
- COMMAND ${CMAKE_COMMAND} -E rename "${CMAKE_SOURCE_DIR}/modules" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AppDir/usr/modules"
- COMMENT "Copying Mods into App Image"
- )
-
# app bundle packing using xcode
elseif (APPLE AND XCODE_BUILD)
# standard app bundle packing