Skip to content

Commit a8aaf98

Browse files
committed
chore(CMakeLists.txt): reconfigure deploy script
1 parent 90c0cd7 commit a8aaf98

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

CMakeLists.txt

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ endif()
1515

1616
project(qSQLbrowser)
1717

18+
set(CMAKE_INSTALL_BINDIR .)
1819
find_package(Qt6 REQUIRED COMPONENTS Widgets Sql)
1920
qt_standard_project_setup()
2021

@@ -37,13 +38,18 @@ set_target_properties(qSQLbrowser PROPERTIES
3738

3839
set(CMAKE_INSTALL_MESSAGE "-- Installing: ${CMAKE_INSTALL_PREFIX}")
3940
install(TARGETS qSQLbrowser
40-
BUNDLE DESTINATION bin
41-
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
41+
BUNDLE DESTINATION .
4242
)
4343

44-
qt_generate_deploy_app_script(
44+
qt_generate_deploy_script(
4545
TARGET qSQLbrowser
4646
OUTPUT_SCRIPT deploy_script
47-
NO_UNSUPPORTED_PLATFORM_ERROR
48-
)
47+
CONTENT "
48+
qt_deploy_runtime_dependencies(
49+
EXECUTABLE \"./$<TARGET_FILE_NAME:qSQLbrowser>\"
50+
GENERATE_QT_CONF
51+
PLUGINS_DIR QtPlugins
52+
VERBOSE
53+
NO_TRANSLATIONS
54+
)")
4955
install(SCRIPT ${deploy_script})

0 commit comments

Comments
 (0)