diff options
Diffstat (limited to 'examples/widgets/painting')
-rw-r--r-- | examples/widgets/painting/CMakeLists.txt | 14 | ||||
-rw-r--r-- | examples/widgets/painting/affine/CMakeLists.txt | 23 | ||||
-rw-r--r-- | examples/widgets/painting/basicdrawing/CMakeLists.txt | 23 | ||||
-rw-r--r-- | examples/widgets/painting/composition/CMakeLists.txt | 23 | ||||
-rw-r--r-- | examples/widgets/painting/concentriccircles/CMakeLists.txt | 17 | ||||
-rw-r--r-- | examples/widgets/painting/deform/CMakeLists.txt | 21 | ||||
-rw-r--r-- | examples/widgets/painting/fontsampler/CMakeLists.txt | 25 | ||||
-rw-r--r-- | examples/widgets/painting/gradients/CMakeLists.txt | 21 | ||||
-rw-r--r-- | examples/widgets/painting/imagecomposition/CMakeLists.txt | 22 | ||||
-rw-r--r-- | examples/widgets/painting/painterpaths/CMakeLists.txt | 26 | ||||
-rw-r--r-- | examples/widgets/painting/pathstroke/CMakeLists.txt | 21 | ||||
-rw-r--r-- | examples/widgets/painting/shared/CMakeLists.txt | 64 | ||||
-rw-r--r-- | examples/widgets/painting/transformations/CMakeLists.txt | 17 |
13 files changed, 317 insertions, 0 deletions
diff --git a/examples/widgets/painting/CMakeLists.txt b/examples/widgets/painting/CMakeLists.txt new file mode 100644 index 0000000000..e7d612da3b --- /dev/null +++ b/examples/widgets/painting/CMakeLists.txt @@ -0,0 +1,14 @@ +# Generated from painting.pro. + +add_subdirectory(shared) # special case +add_subdirectory(basicdrawing) +add_subdirectory(concentriccircles) +add_subdirectory(affine) +# add_subdirectory(composition) # FIXME: Seems buggy wrt. usesOpenGL function +add_subdirectory(deform) +add_subdirectory(gradients) +add_subdirectory(pathstroke) +add_subdirectory(imagecomposition) +add_subdirectory(painterpaths) +add_subdirectory(transformations) +add_subdirectory(fontsampler) diff --git a/examples/widgets/painting/affine/CMakeLists.txt b/examples/widgets/painting/affine/CMakeLists.txt new file mode 100644 index 0000000000..cda43296dd --- /dev/null +++ b/examples/widgets/painting/affine/CMakeLists.txt @@ -0,0 +1,23 @@ +# Generated from affine.pro. + +##################################################################### +## affine Binary: +##################################################################### + +add_qt_executable(affine + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/affine" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/affine" + SOURCES + main.cpp + xform.cpp xform.h + # INCLUDE_DIRECTORIES ../shared # special case + LIBRARIES # special case + painting_shared +) + +# Resources: +add_qt_resource(affine "affine" PREFIX "/res/affine" FILES + bg1.jpg + xform.cpp + xform.html) diff --git a/examples/widgets/painting/basicdrawing/CMakeLists.txt b/examples/widgets/painting/basicdrawing/CMakeLists.txt new file mode 100644 index 0000000000..176149dad5 --- /dev/null +++ b/examples/widgets/painting/basicdrawing/CMakeLists.txt @@ -0,0 +1,23 @@ +# Generated from basicdrawing.pro. + +##################################################################### +## basicdrawing Binary: +##################################################################### + +add_qt_executable(basicdrawing + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/basicdrawing" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/basicdrawing" + SOURCES + main.cpp + renderarea.cpp renderarea.h + window.cpp window.h + LIBRARIES + Qt::Widgets +) + +# Resources: +add_qt_resource(basicdrawing "basicdrawing" FILES + images/brick.png + images/qt-logo.png) + diff --git a/examples/widgets/painting/composition/CMakeLists.txt b/examples/widgets/painting/composition/CMakeLists.txt new file mode 100644 index 0000000000..1e83bc4814 --- /dev/null +++ b/examples/widgets/painting/composition/CMakeLists.txt @@ -0,0 +1,23 @@ +# Generated from composition.pro. + +##################################################################### +## composition Binary: +##################################################################### + +add_qt_executable(composition + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/composition" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/composition" + SOURCES + composition.cpp composition.h + main.cpp + LIBRARIES # special case + painting_shared +) + +# Resources: +add_qt_resource(composition "composition" PREFIX "/res/composition" FILES + composition.cpp + composition.html + flower.jpg + flower_alpha.jpg) diff --git a/examples/widgets/painting/concentriccircles/CMakeLists.txt b/examples/widgets/painting/concentriccircles/CMakeLists.txt new file mode 100644 index 0000000000..a2305782a5 --- /dev/null +++ b/examples/widgets/painting/concentriccircles/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from concentriccircles.pro. + +##################################################################### +## concentriccircles Binary: +##################################################################### + +add_qt_executable(concentriccircles + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/concentriccircles" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/concentriccircles" + SOURCES + circlewidget.cpp circlewidget.h + main.cpp + window.cpp window.h + LIBRARIES + Qt::Widgets +) diff --git a/examples/widgets/painting/deform/CMakeLists.txt b/examples/widgets/painting/deform/CMakeLists.txt new file mode 100644 index 0000000000..67622da25d --- /dev/null +++ b/examples/widgets/painting/deform/CMakeLists.txt @@ -0,0 +1,21 @@ +# Generated from deform.pro. + +##################################################################### +## deform Binary: +##################################################################### + +add_qt_executable(deform + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/deform" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/deform" + SOURCES + main.cpp + pathdeform.cpp pathdeform.h + LIBRARIES # special case + painting_shared +) + +# Resources: +add_qt_resource(deform "deform" PREFIX "/res/deform" FILES + pathdeform.cpp + pathdeform.html) diff --git a/examples/widgets/painting/fontsampler/CMakeLists.txt b/examples/widgets/painting/fontsampler/CMakeLists.txt new file mode 100644 index 0000000000..a32b10589f --- /dev/null +++ b/examples/widgets/painting/fontsampler/CMakeLists.txt @@ -0,0 +1,25 @@ +# Generated from fontsampler.pro. + +##################################################################### +## fontsampler Binary: +##################################################################### + +add_qt_executable(fontsampler + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/fontsampler" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/fontsampler" + SOURCES + main.cpp + mainwindow.cpp mainwindow.h + mainwindowbase.ui + LIBRARIES + Qt::Widgets +) + +## Scopes: +##################################################################### + +extend_target(fontsampler CONDITION TARGET Qt::PrintSupport + LIBRARIES + Qt::PrintSupport +) diff --git a/examples/widgets/painting/gradients/CMakeLists.txt b/examples/widgets/painting/gradients/CMakeLists.txt new file mode 100644 index 0000000000..0d5553b986 --- /dev/null +++ b/examples/widgets/painting/gradients/CMakeLists.txt @@ -0,0 +1,21 @@ +# Generated from gradients.pro. + +##################################################################### +## gradients Binary: +##################################################################### + +add_qt_executable(gradients + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/gradients" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/gradients" + SOURCES + gradients.cpp gradients.h + main.cpp + LIBRARIES # special case + painting_shared +) + +# Resources: +add_qt_resource(gradients "gradients" PREFIX "/res/gradients" FILES + gradients.cpp + gradients.html) diff --git a/examples/widgets/painting/imagecomposition/CMakeLists.txt b/examples/widgets/painting/imagecomposition/CMakeLists.txt new file mode 100644 index 0000000000..eed2bede43 --- /dev/null +++ b/examples/widgets/painting/imagecomposition/CMakeLists.txt @@ -0,0 +1,22 @@ +# Generated from imagecomposition.pro. + +##################################################################### +## imagecomposition Binary: +##################################################################### + +add_qt_executable(imagecomposition + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/imagecomposition" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/imagecomposition" + SOURCES + imagecomposer.cpp imagecomposer.h + main.cpp + LIBRARIES + Qt::Widgets +) + +# Resources: +add_qt_resource(imagecomposition "imagecomposition" FILES + images/butterfly.png + images/checker.png) + diff --git a/examples/widgets/painting/painterpaths/CMakeLists.txt b/examples/widgets/painting/painterpaths/CMakeLists.txt new file mode 100644 index 0000000000..13dd321a52 --- /dev/null +++ b/examples/widgets/painting/painterpaths/CMakeLists.txt @@ -0,0 +1,26 @@ +# Generated from painterpaths.pro. + +##################################################################### +## painterpaths Binary: +##################################################################### + +add_qt_executable(painterpaths + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/painterpaths" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/painterpaths" + SOURCES + main.cpp + renderarea.cpp renderarea.h + window.cpp window.h + LIBRARIES + Qt::Widgets + painting_shared # special case +) + +## Scopes: +##################################################################### + +extend_target(painterpaths CONDITION UNIX AND NOT APPLE_OSX AND NOT HAIKU AND NOT INTEGRITY AND NOT VXWORKS + LIBRARIES + m +) diff --git a/examples/widgets/painting/pathstroke/CMakeLists.txt b/examples/widgets/painting/pathstroke/CMakeLists.txt new file mode 100644 index 0000000000..150a1baa83 --- /dev/null +++ b/examples/widgets/painting/pathstroke/CMakeLists.txt @@ -0,0 +1,21 @@ +# Generated from pathstroke.pro. + +##################################################################### +## pathstroke Binary: +##################################################################### + +add_qt_executable(pathstroke + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/pathstroke" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/pathstroke" + SOURCES + main.cpp + pathstroke.cpp pathstroke.h + LIBRARIES # special case + painting_shared +) + +# Resources: +add_qt_resource(pathstroke "pathstroke" PREFIX "/res/pathstroke" FILES + pathstroke.cpp + pathstroke.html) diff --git a/examples/widgets/painting/shared/CMakeLists.txt b/examples/widgets/painting/shared/CMakeLists.txt new file mode 100644 index 0000000000..a7bec2789b --- /dev/null +++ b/examples/widgets/painting/shared/CMakeLists.txt @@ -0,0 +1,64 @@ +# special case: Entire file! + +# special case: +add_library(painting_shared OBJECT) +qt_manual_moc(moc_files arthurwidgets.h hoverpoints.h) # no automoc for OBJECT libs:-/ +target_sources(painting_shared PRIVATE + arthurstyle.cpp arthurstyle.h + arthurwidgets.cpp arthurwidgets.h + hoverpoints.cpp hoverpoints.h + ${moc_files} +) +target_link_libraries(painting_shared PUBLIC Qt::Widgets) +target_include_directories(painting_shared PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}") + + +# Resources: +add_qt_resource(painting_shared "shared" PREFIX "/res" FILES + images/button_normal_cap_left.png + images/button_normal_cap_right.png + images/button_normal_stretch.png + images/button_pressed_cap_left.png + images/button_pressed_cap_right.png + images/button_pressed_stretch.png + images/frame_bottom.png + images/frame_bottomleft.png + images/frame_bottomright.png + images/frame_left.png + images/frame_right.png + images/frame_top.png + images/frame_topleft.png + images/frame_topright.png + images/groupframe_bottom_left.png + images/groupframe_bottom_right.png + images/groupframe_bottom_stretch.png + images/groupframe_left_stretch.png + images/groupframe_right_stretch.png + images/groupframe_top_stretch.png + images/groupframe_topleft.png + images/groupframe_topright.png + images/line_dash_dot.png + images/line_dash_dot_dot.png + images/line_dashed.png + images/line_dotted.png + images/line_solid.png + images/radiobutton-on.png + images/radiobutton_off.png + images/radiobutton_on.png + images/slider_bar.png + images/slider_thumb_on.png + images/title_cap_left.png + images/title_cap_right.png + images/title_stretch.png) + + +## Scopes: +##################################################################### + +extend_target(painting_shared CONDITION TARGET Qt::OpenGL OR QT_FEATURE_opengles2 + DEFINES + QT_OPENGL_SUPPORT + LIBRARIES + Qt::OpenGL + Qt::Widgets +) diff --git a/examples/widgets/painting/transformations/CMakeLists.txt b/examples/widgets/painting/transformations/CMakeLists.txt new file mode 100644 index 0000000000..a3c3130c32 --- /dev/null +++ b/examples/widgets/painting/transformations/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from transformations.pro. + +##################################################################### +## transformations Binary: +##################################################################### + +add_qt_executable(transformations + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/transformations" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/widgets/painting/transformations" + SOURCES + main.cpp + renderarea.cpp renderarea.h + window.cpp window.h + LIBRARIES + Qt::Widgets +) |