aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-11-22 16:04:34 +0000
committersaturneric <[email protected]>2024-11-22 16:04:34 +0000
commitb1d48abf82b60ce15a26c730a1c22d69139a9ebc (patch)
treefdcc8c5cce5376429e0cd3e2571523e832130902
parentfix: correct table header of key db index (diff)
downloadGpgFrontend-b1d48abf82b60ce15a26c730a1c22d69139a9ebc.tar.gz
GpgFrontend-b1d48abf82b60ce15a26c730a1c22d69139a9ebc.zip
fix: solve a build issue
-rw-r--r--src/CMakeLists.txt15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index cfafd107..c1d3d326 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -349,19 +349,20 @@ if(BUILD_APP_IMAGE)
set(RESOURCE_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AppDir/usr/share)
file(REMOVE ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AppDir/usr/bin/${AppName})
- add_executable(${AppName} ${BASE_SOURCE} ${RESOURCE_FILES})
-
- add_custom_command(TARGET ${AppName} POST_BUILD
- COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AppDir/usr/bin"
- COMMAND ${CMAKE_COMMAND} -E rename "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${AppName}" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AppDir/usr/bin/${AppName}"
- COMMENT "Copying Binary into App Image"
- )
endif()
if(BUILD_APPLICATION)
if(${CMAKE_BUILD_TYPE} STREQUAL "Release")
if(MINGW)
add_executable(${AppName} WIN32 ${BASE_SOURCE} ${RESOURCE_FILES})
+ elseif(BUILD_APP_IMAGE)
+ add_executable(${AppName} ${BASE_SOURCE} ${RESOURCE_FILES})
+
+ add_custom_command(TARGET ${AppName} POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AppDir/usr/bin"
+ COMMAND ${CMAKE_COMMAND} -E rename "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${AppName}" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/AppDir/usr/bin/${AppName}"
+ COMMENT "Copying Binary into App Image"
+ )
# app bundle packing using xcode
elseif(APPLE AND XCODE_BUILD)