summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/gui/rasterwindow/CMakeLists.txt22
1 files changed, 5 insertions, 17 deletions
diff --git a/examples/gui/rasterwindow/CMakeLists.txt b/examples/gui/rasterwindow/CMakeLists.txt
index 13caffe5bb..667f91c268 100644
--- a/examples/gui/rasterwindow/CMakeLists.txt
+++ b/examples/gui/rasterwindow/CMakeLists.txt
@@ -1,18 +1,6 @@
-# Generated from rasterwindow.pro.
-
-#####################################################################
-## None Binary:
-#####################################################################
-
-set(sources main.cpp
- rasterwindow.cpp rasterwindow.h)
-add_executable(rasterwindow
- ${sources}
+add_qt_executable(rasterwindow
+ SOURCES
+ main.cpp
+ rasterwindow.cpp rasterwindow.h
+ LIBRARIES Qt::Core Qt::Test Qt::Gui
)
-qt_internal_automoc(rasterwindow ${sources})
-target_include_directories(rasterwindow
- PRIVATE
- "${CMAKE_CURRENT_SOURCE_DIR}"
- "${CMAKE_CURRENT_BINARY_DIR}"
- )
-target_link_libraries(rasterwindow PRIVATE Qt::Core Qt::Test Qt::Gui)