summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/cmake-macros/examples.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/doc/snippets/cmake-macros/examples.cmake')
-rw-r--r--src/widgets/doc/snippets/cmake-macros/examples.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/widgets/doc/snippets/cmake-macros/examples.cmake b/src/widgets/doc/snippets/cmake-macros/examples.cmake
new file mode 100644
index 0000000000..61ec7aed54
--- /dev/null
+++ b/src/widgets/doc/snippets/cmake-macros/examples.cmake
@@ -0,0 +1,5 @@
+#! [qt5_wrap_ui]
+set(SOURCES mainwindow.cpp main.cpp)
+qt5_wrap_ui(SOURCES mainwindow.ui)
+add_executable(myapp ${SOURCES})
+#! [qt5_wrap_ui]