summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2018-12-12 10:55:20 +0100
committerSimon Hausmann <simon.hausmann@qt.io>2018-12-14 14:04:59 +0000
commite57a94cbd8f28ccab8b3368afc4365237c533a4f (patch)
treeabfa6a25629580f6a76a0cf2d06cdeb593339b2b /examples
parent07dfa3013c94ddfda692ac235b2e022f8265c450 (diff)
CMake: Use AUTOMOC/AUTOUIC/AUTORCC
Change-Id: I0235ca4f227623e5937348b4b010637921dbf154 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
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)