Skip to content

Commit 61ebfb0

Browse files
committed
move install target between generate and install script
1 parent c0f5116 commit 61ebfb0

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

sparsely/CMakeLists.txt

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ if(LINUX)
186186
)
187187
endif()
188188

189-
install(TARGETS ${exeName}
190-
BUNDLE DESTINATION .
191-
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
192-
COMPONENT ${appName}
193-
)
189+
#install(TARGETS ${exeName}
190+
# BUNDLE DESTINATION .
191+
# RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
192+
# COMPONENT ${appName}
193+
#)
194194

195195
if(APPLE)
196196
set(SIGNING_IDENTITY "-")#"Developer ID Application: Your Company (ID)") # Define your signing identity
@@ -204,6 +204,18 @@ qt6_generate_deploy_app_script(
204204
NO_TRANSLATIONS
205205
)
206206

207+
if (APPLE)
208+
install(TARGETS ${exeName}
209+
BUNDLE DESTINATION .
210+
COMPONENT ${appName}
211+
)
212+
else()
213+
install(TARGETS ${exeName}
214+
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
215+
COMPONENT "${appName}"
216+
)
217+
endif()
218+
207219
install(SCRIPT ${deploy_script}
208220
COMPONENT "${appName}"
209221
)

0 commit comments

Comments
 (0)