diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2019-03-20 13:41:37 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2019-03-26 15:25:39 +0000 |
commit | aa50b377a7d904e35cf3a26e4c8a054108011ffd (patch) | |
tree | ff45946e5779357aa547f00a8b5b9d0119a2b8f2 /examples/widgets/touch | |
parent | 05ebd62f099b51b160a06e1257007bf437355fae (diff) |
CMake: Add widgets examples
Change-Id: Ib6142b93df066e3658eb189b50ca74c455fe7e56
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'examples/widgets/touch')
-rw-r--r-- | examples/widgets/touch/CMakeLists.txt | 6 | ||||
-rw-r--r-- | examples/widgets/touch/dials/CMakeLists.txt | 16 | ||||
-rw-r--r-- | examples/widgets/touch/fingerpaint/CMakeLists.txt | 25 | ||||
-rw-r--r-- | examples/widgets/touch/knobs/CMakeLists.txt | 16 | ||||
-rw-r--r-- | examples/widgets/touch/pinchzoom/CMakeLists.txt | 22 |
5 files changed, 85 insertions, 0 deletions
diff --git a/examples/widgets/touch/CMakeLists.txt b/examples/widgets/touch/CMakeLists.txt new file mode 100644 index 0000000000..06b72cada7 --- /dev/null +++ b/examples/widgets/touch/CMakeLists.txt @@ -0,0 +1,6 @@ +# Generated from touch.pro. + +add_subdirectory(pinchzoom) +add_subdirectory(fingerpaint) +add_subdirectory(knobs) +add_subdirectory(dials) diff --git a/examples/widgets/touch/dials/CMakeLists.txt b/examples/widgets/touch/dials/CMakeLists.txt new file mode 100644 index 0000000000..0266bc4e3b --- /dev/null +++ b/examples/widgets/touch/dials/CMakeLists.txt @@ -0,0 +1,16 @@ +# Generated from dials.pro. + +##################################################################### +## dials Binary: +##################################################################### + +add_qt_executable(dials + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/touch/dials" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/touch/dials" + SOURCES + dials.ui + main.cpp + LIBRARIES + Qt::Widgets +) diff --git a/examples/widgets/touch/fingerpaint/CMakeLists.txt b/examples/widgets/touch/fingerpaint/CMakeLists.txt new file mode 100644 index 0000000000..82ec8cd91e --- /dev/null +++ b/examples/widgets/touch/fingerpaint/CMakeLists.txt @@ -0,0 +1,25 @@ +# Generated from fingerpaint.pro. + +##################################################################### +## fingerpaint Binary: +##################################################################### + +add_qt_executable(fingerpaint + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/touch/fingerpaint" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/touch/fingerpaint" + SOURCES + main.cpp + mainwindow.cpp mainwindow.h + scribblearea.cpp scribblearea.h + LIBRARIES + Qt::Widgets +) + +## Scopes: +##################################################################### + +extend_target(fingerpaint CONDITION TARGET Qt::PrintSupport + LIBRARIES + Qt::PrintSupport +) diff --git a/examples/widgets/touch/knobs/CMakeLists.txt b/examples/widgets/touch/knobs/CMakeLists.txt new file mode 100644 index 0000000000..e8976db270 --- /dev/null +++ b/examples/widgets/touch/knobs/CMakeLists.txt @@ -0,0 +1,16 @@ +# Generated from knobs.pro. + +##################################################################### +## knobs Binary: +##################################################################### + +add_qt_executable(knobs + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/touch/knobs" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/touch/knobs" + SOURCES + knob.cpp knob.h + main.cpp + LIBRARIES + Qt::Widgets +) diff --git a/examples/widgets/touch/pinchzoom/CMakeLists.txt b/examples/widgets/touch/pinchzoom/CMakeLists.txt new file mode 100644 index 0000000000..92d7b4c3b3 --- /dev/null +++ b/examples/widgets/touch/pinchzoom/CMakeLists.txt @@ -0,0 +1,22 @@ +# Generated from pinchzoom.pro. + +##################################################################### +## pinchzoom Binary: +##################################################################### + +add_qt_executable(pinchzoom + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/touch/pinchzoom" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/touch/pinchzoom" + SOURCES + graphicsview.cpp graphicsview.h + main.cpp + mouse.cpp mouse.h + LIBRARIES + Qt::Widgets +) + +# Resources: +add_qt_resource(pinchzoom "mice" PREFIX "/" FILES + images/cheese.jpg) + |