summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/controls
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2020-10-13 09:48:34 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-10-13 20:17:04 +0200
commit472e6921994d24e0c2134ae05d9c9044ed57b76d (patch)
treea0b76df1924af416cee2fc294d045418d5fd1940 /examples/qt3d/controls
parentdd698034fd191807a1c02fd49c8cc87ec61d5b44 (diff)
CMake: Honor INSTALL_EXAMPLESDIR
Re-generate examples, but only the chunks that handle INSTALL_EXAMPLESDIR, because there have been so many manual changes that were not special-cased. Fixes: QTBUG-87331 Change-Id: I0926c015ce2733b462adba18e3dbf47621a7e679 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Christophe Giboudeaux <christophe@krop.fr>
Diffstat (limited to 'examples/qt3d/controls')
-rw-r--r--examples/qt3d/controls/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/qt3d/controls/CMakeLists.txt b/examples/qt3d/controls/CMakeLists.txt
index 1ed8d038d..962d62813 100644
--- a/examples/qt3d/controls/CMakeLists.txt
+++ b/examples/qt3d/controls/CMakeLists.txt
@@ -9,7 +9,11 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
-set(INSTALL_EXAMPLEDIR "examples")
+if(NOT DEFINED INSTALL_EXAMPLESDIR)
+ set(INSTALL_EXAMPLESDIR "examples")
+endif()
+
+set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}")
find_package(Qt6 COMPONENTS Core)
find_package(Qt6 COMPONENTS Gui)