diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-10-13 09:48:34 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-10-13 20:17:04 +0200 |
commit | 472e6921994d24e0c2134ae05d9c9044ed57b76d (patch) | |
tree | a0b76df1924af416cee2fc294d045418d5fd1940 /examples/qt3d/simple-cpp | |
parent | dd698034fd191807a1c02fd49c8cc87ec61d5b44 (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/simple-cpp')
-rw-r--r-- | examples/qt3d/simple-cpp/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/qt3d/simple-cpp/CMakeLists.txt b/examples/qt3d/simple-cpp/CMakeLists.txt index 4afa8b410..eda073d21 100644 --- a/examples/qt3d/simple-cpp/CMakeLists.txt +++ b/examples/qt3d/simple-cpp/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) |