From 7294c5652ec413b24d3b4f47ab16a7230ecc2bdc Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Mon, 7 Oct 2024 13:51:47 +0200 Subject: [PATCH] Wizards: Add include(GNUInstallDirs) Change-Id: Ib61a9c8dee735dab0799f5b10a1f114c82c84fba Reviewed-by: Eike Ziller --- .../templates/wizards/projects/consoleapp/CMakeLists-Qt6.txt | 2 ++ .../wizards/projects/qtwidgetsapplication/CMakeLists-Qt6.txt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/share/qtcreator/templates/wizards/projects/consoleapp/CMakeLists-Qt6.txt b/share/qtcreator/templates/wizards/projects/consoleapp/CMakeLists-Qt6.txt index a4161a01f5d..31e0827243f 100644 --- a/share/qtcreator/templates/wizards/projects/consoleapp/CMakeLists-Qt6.txt +++ b/share/qtcreator/templates/wizards/projects/consoleapp/CMakeLists-Qt6.txt @@ -25,6 +25,8 @@ target_link_libraries(%{ProjectName} Qt::Core ) +include(GNUInstallDirs) + install(TARGETS %{ProjectName} BUNDLE DESTINATION . RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} diff --git a/share/qtcreator/templates/wizards/projects/qtwidgetsapplication/CMakeLists-Qt6.txt b/share/qtcreator/templates/wizards/projects/qtwidgetsapplication/CMakeLists-Qt6.txt index 7f63269cdd0..fab47ee1a65 100644 --- a/share/qtcreator/templates/wizards/projects/qtwidgetsapplication/CMakeLists-Qt6.txt +++ b/share/qtcreator/templates/wizards/projects/qtwidgetsapplication/CMakeLists-Qt6.txt @@ -32,6 +32,8 @@ target_link_libraries(%{ProjectName} Qt::Widgets ) +include(GNUInstallDirs) + install(TARGETS %{ProjectName} BUNDLE DESTINATION . RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}