diff options
Diffstat (limited to 'examples/widgets/tools/plugandpaint/app')
-rw-r--r-- | examples/widgets/tools/plugandpaint/app/.prev_CMakeLists.txt | 6 | ||||
-rw-r--r-- | examples/widgets/tools/plugandpaint/app/CMakeLists.txt | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/examples/widgets/tools/plugandpaint/app/.prev_CMakeLists.txt b/examples/widgets/tools/plugandpaint/app/.prev_CMakeLists.txt index 0a7a7155ad..2ec3418964 100644 --- a/examples/widgets/tools/plugandpaint/app/.prev_CMakeLists.txt +++ b/examples/widgets/tools/plugandpaint/app/.prev_CMakeLists.txt @@ -9,7 +9,11 @@ set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) -set(INSTALL_EXAMPLEDIR "examples/widgets/tools/plugandpaint") +if(NOT DEFINED INSTALL_EXAMPLESDIR) + set(INSTALL_EXAMPLESDIR "examples") +endif() + +set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/tools/plugandpaint") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) diff --git a/examples/widgets/tools/plugandpaint/app/CMakeLists.txt b/examples/widgets/tools/plugandpaint/app/CMakeLists.txt index 5548074446..07f6810bd6 100644 --- a/examples/widgets/tools/plugandpaint/app/CMakeLists.txt +++ b/examples/widgets/tools/plugandpaint/app/CMakeLists.txt @@ -9,7 +9,11 @@ set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) -set(INSTALL_EXAMPLEDIR "examples/widgets/tools/plugandpaint") +if(NOT DEFINED INSTALL_EXAMPLESDIR) + set(INSTALL_EXAMPLESDIR "examples") +endif() + +set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/tools/plugandpaint") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) |