diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2019-03-18 19:26:24 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2019-03-26 13:03:01 +0000 |
commit | 64c6c943c7469c60e8d25c3efd630249740ae2f4 (patch) | |
tree | 4677ee8024b245d03ac647b11928930c1ad56304 /examples/corelib/threads | |
parent | a0a94576fae26bcbbf3823a6ee4b554886e84925 (diff) |
CMake: Add more examples
Change-Id: I7a8a3fd0a844a518592957fe07c6e707dd452d5f
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'examples/corelib/threads')
-rw-r--r-- | examples/corelib/threads/CMakeLists.txt | 9 | ||||
-rw-r--r-- | examples/corelib/threads/mandelbrot/CMakeLists.txt | 25 | ||||
-rw-r--r-- | examples/corelib/threads/queuedcustomtype/CMakeLists.txt | 18 | ||||
-rw-r--r-- | examples/corelib/threads/semaphores/CMakeLists.txt | 15 | ||||
-rw-r--r-- | examples/corelib/threads/waitconditions/CMakeLists.txt | 15 |
5 files changed, 82 insertions, 0 deletions
diff --git a/examples/corelib/threads/CMakeLists.txt b/examples/corelib/threads/CMakeLists.txt new file mode 100644 index 0000000000..b13dd16d93 --- /dev/null +++ b/examples/corelib/threads/CMakeLists.txt @@ -0,0 +1,9 @@ +# Generated from threads.pro. + +add_subdirectory(semaphores) +add_subdirectory(waitconditions) + +if(TARGET Qt::Widgets) + add_subdirectory(mandelbrot) + add_subdirectory(queuedcustomtype) +endif() diff --git a/examples/corelib/threads/mandelbrot/CMakeLists.txt b/examples/corelib/threads/mandelbrot/CMakeLists.txt new file mode 100644 index 0000000000..00f27bacd9 --- /dev/null +++ b/examples/corelib/threads/mandelbrot/CMakeLists.txt @@ -0,0 +1,25 @@ +# Generated from mandelbrot.pro. + +##################################################################### +## mandelbrot Binary: +##################################################################### + +add_qt_executable(mandelbrot + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/mandelbrot" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/mandelbrot" + SOURCES + main.cpp + mandelbrotwidget.cpp mandelbrotwidget.h + renderthread.cpp renderthread.h + LIBRARIES + Qt::Widgets +) + +## Scopes: +##################################################################### + +extend_target(mandelbrot CONDITION UNIX AND NOT APPLE_OSX AND NOT HAIKU AND NOT INTEGRITY AND NOT VXWORKS + LIBRARIES + m +) diff --git a/examples/corelib/threads/queuedcustomtype/CMakeLists.txt b/examples/corelib/threads/queuedcustomtype/CMakeLists.txt new file mode 100644 index 0000000000..b86092bf26 --- /dev/null +++ b/examples/corelib/threads/queuedcustomtype/CMakeLists.txt @@ -0,0 +1,18 @@ +# Generated from queuedcustomtype.pro. + +##################################################################### +## queuedcustomtype Binary: +##################################################################### + +add_qt_executable(queuedcustomtype + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/queuedcustomtype" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/queuedcustomtype" + SOURCES + block.cpp block.h + main.cpp + renderthread.cpp renderthread.h + window.cpp window.h + LIBRARIES + Qt::Widgets +) diff --git a/examples/corelib/threads/semaphores/CMakeLists.txt b/examples/corelib/threads/semaphores/CMakeLists.txt new file mode 100644 index 0000000000..d94f1ba5b4 --- /dev/null +++ b/examples/corelib/threads/semaphores/CMakeLists.txt @@ -0,0 +1,15 @@ +# Generated from semaphores.pro. + +##################################################################### +## semaphores Binary: +##################################################################### + +add_qt_executable(semaphores + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/semaphores" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/semaphores" + SOURCES + semaphores.cpp +) + +#### Keys ignored in scope 1:.:semaphores.pro:<NONE>: +# CONFIG = "-app_bundle" "console" diff --git a/examples/corelib/threads/waitconditions/CMakeLists.txt b/examples/corelib/threads/waitconditions/CMakeLists.txt new file mode 100644 index 0000000000..0a347c1cdd --- /dev/null +++ b/examples/corelib/threads/waitconditions/CMakeLists.txt @@ -0,0 +1,15 @@ +# Generated from waitconditions.pro. + +##################################################################### +## waitconditions Binary: +##################################################################### + +add_qt_executable(waitconditions + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/waitconditions" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/waitconditions" + SOURCES + waitconditions.cpp +) + +#### Keys ignored in scope 1:.:waitconditions.pro:<NONE>: +# CONFIG = "-moc" "-app_bundle" "console" |