summaryrefslogtreecommitdiff
path: root/xmake/templates/c++/qt/widgetapp/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/templates/c++/qt/widgetapp/xmake.lua')
-rw-r--r--xmake/templates/c++/qt/widgetapp/xmake.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/xmake/templates/c++/qt/widgetapp/xmake.lua b/xmake/templates/c++/qt/widgetapp/xmake.lua
new file mode 100644
index 000000000..e0f9f455e
--- /dev/null
+++ b/xmake/templates/c++/qt/widgetapp/xmake.lua
@@ -0,0 +1,11 @@
+add_rules("mode.debug", "mode.release")
+
+target("${TARGET_NAME}")
+ add_rules("qt.widgetapp")
+ add_headerfiles("src/*.h")
+ add_files("src/*.cpp")
+ add_files("src/mainwindow.ui")
+ -- add files with Q_OBJECT meta (only for qt.moc)
+ add_files("src/mainwindow.h")
+
+${FAQ}