summaryrefslogtreecommitdiffstats
path: root/examples/oauth
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-09-22 17:49:05 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-09-22 18:45:16 +0200
commit803f3e6bc307026d4c33deb9f1c1d2a8e5ef34f4 (patch)
treea41890377813e86593b1e1718dc6ab40339d49f4 /examples/oauth
parentfff398eaaacdf18ad138dd51303e2cff2411cd7e (diff)
CMake: Regenerate projects before API change
Task-number: QTBUG-86815 Change-Id: Idb244e79bd46d6ce7d63fb7c73011e2b999e580e Reviewed-by: Jesus Fernandez <jsfdez@gmail.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'examples/oauth')
-rw-r--r--examples/oauth/redditclient/CMakeLists.txt6
-rw-r--r--examples/oauth/twittertimeline/CMakeLists.txt6
2 files changed, 10 insertions, 2 deletions
diff --git a/examples/oauth/redditclient/CMakeLists.txt b/examples/oauth/redditclient/CMakeLists.txt
index 8afced5..4632105 100644
--- a/examples/oauth/redditclient/CMakeLists.txt
+++ b/examples/oauth/redditclient/CMakeLists.txt
@@ -9,7 +9,11 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
-set(INSTALL_EXAMPLEDIR "examples/oauth/redditclient")
+if(NOT DEFINED INSTALL_EXAMPLESDIR)
+ set(INSTALL_EXAMPLESDIR "examples")
+endif()
+
+set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/oauth/redditclient")
find_package(Qt6 COMPONENTS Core)
find_package(Qt6 COMPONENTS Gui)
diff --git a/examples/oauth/twittertimeline/CMakeLists.txt b/examples/oauth/twittertimeline/CMakeLists.txt
index 053be1d..1efa737 100644
--- a/examples/oauth/twittertimeline/CMakeLists.txt
+++ b/examples/oauth/twittertimeline/CMakeLists.txt
@@ -9,7 +9,11 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
-set(INSTALL_EXAMPLEDIR "examples/oauth/twittertimeline")
+if(NOT DEFINED INSTALL_EXAMPLESDIR)
+ set(INSTALL_EXAMPLESDIR "examples")
+endif()
+
+set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/oauth/twittertimeline")
find_package(Qt6 COMPONENTS Core)
find_package(Qt6 COMPONENTS Widgets)