From 64c6c943c7469c60e8d25c3efd630249740ae2f4 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Mon, 18 Mar 2019 19:26:24 +0100 Subject: CMake: Add more examples Change-Id: I7a8a3fd0a844a518592957fe07c6e707dd452d5f Reviewed-by: Alexandru Croitor --- examples/gui/CMakeLists.txt | 7 +++++++ examples/gui/analogclock/CMakeLists.txt | 21 +++++++++++++++++++++ examples/gui/openglwindow/CMakeLists.txt | 18 ++++++++++++++++++ examples/gui/rasterwindow/CMakeLists.txt | 20 ++++++++++++++++---- 4 files changed, 62 insertions(+), 4 deletions(-) create mode 100644 examples/gui/analogclock/CMakeLists.txt create mode 100644 examples/gui/openglwindow/CMakeLists.txt (limited to 'examples/gui') diff --git a/examples/gui/CMakeLists.txt b/examples/gui/CMakeLists.txt index ac96b7351c..7ae4c6bc6a 100644 --- a/examples/gui/CMakeLists.txt +++ b/examples/gui/CMakeLists.txt @@ -1 +1,8 @@ +# Generated from gui.pro. + +add_subdirectory(analogclock) add_subdirectory(rasterwindow) + +if(TARGET Qt::Gui AND QT_FEATURE_opengl) + add_subdirectory(openglwindow) +endif() diff --git a/examples/gui/analogclock/CMakeLists.txt b/examples/gui/analogclock/CMakeLists.txt new file mode 100644 index 0000000000..99a879c57a --- /dev/null +++ b/examples/gui/analogclock/CMakeLists.txt @@ -0,0 +1,21 @@ +# Generated from analogclock.pro. + +##################################################################### +## analogclock Binary: +##################################################################### + +add_qt_executable(analogclock + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/gui/analogclock" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/gui/analogclock" + SOURCES + ../rasterwindow/rasterwindow.cpp ../rasterwindow/rasterwindow.h + main.cpp + INCLUDE_DIRECTORIES + ../rasterwindow + LIBRARIES # special case + Qt::Gui +) + +#### Keys ignored in scope 1:.:analogclock.pro:: +# CONFIG = "no_batch" diff --git a/examples/gui/openglwindow/CMakeLists.txt b/examples/gui/openglwindow/CMakeLists.txt new file mode 100644 index 0000000000..a59ba14346 --- /dev/null +++ b/examples/gui/openglwindow/CMakeLists.txt @@ -0,0 +1,18 @@ +# Generated from openglwindow.pro. + +##################################################################### +## openglwindow Binary: +##################################################################### + +add_qt_executable(openglwindow + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/gui/openglwindow" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/gui/openglwindow" + SOURCES + main.cpp + openglwindow.cpp openglwindow.h + INCLUDE_DIRECTORIES + ${CMAKE_CURRENT_SOURCE_DIR} + LIBRARIES # special case + Qt::Gui +) diff --git a/examples/gui/rasterwindow/CMakeLists.txt b/examples/gui/rasterwindow/CMakeLists.txt index 667f91c268..61255f3038 100644 --- a/examples/gui/rasterwindow/CMakeLists.txt +++ b/examples/gui/rasterwindow/CMakeLists.txt @@ -1,6 +1,18 @@ +# Generated from rasterwindow.pro. + +##################################################################### +## rasterwindow Binary: +##################################################################### + add_qt_executable(rasterwindow - SOURCES - main.cpp - rasterwindow.cpp rasterwindow.h - LIBRARIES Qt::Core Qt::Test Qt::Gui + GUI + OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/gui/rasterwindow" + INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/gui/rasterwindow" + SOURCES + main.cpp + rasterwindow.cpp rasterwindow.h + INCLUDE_DIRECTORIES + ${CMAKE_CURRENT_SOURCE_DIR} + LIBRARIES # special case + Qt::Gui ) -- cgit v1.2.3