summaryrefslogtreecommitdiff
path: root/tests/projects/qt/with_private/xmake.lua
diff options
context:
space:
mode:
authorcarols <[email protected]>2020-04-07 06:14:45 +0800
committercarols <[email protected]>2020-04-07 06:44:33 +0800
commitf4ecb2c0dfb21b0566e15efdae5b4f4069a274c9 (patch)
treeda38bcd864b338279d2d30e13dfb6c6f199b4fb5 /tests/projects/qt/with_private/xmake.lua
parenta88d4dc9322430377ce6ff8b0e2e0ff3fa1eda92 (diff)
fix with_private name
Diffstat (limited to 'tests/projects/qt/with_private/xmake.lua')
-rw-r--r--tests/projects/qt/with_private/xmake.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/projects/qt/with_private/xmake.lua b/tests/projects/qt/with_private/xmake.lua
new file mode 100644
index 000000000..6cc6378e7
--- /dev/null
+++ b/tests/projects/qt/with_private/xmake.lua
@@ -0,0 +1,22 @@
+
+-- add modes: debug and release
+add_rules("mode.debug", "mode.release")
+
+-- add target
+target("qt_demo")
+
+ -- add rules
+ add_rules("qt.widgetapp")
+ add_frameworks("QtCore", "QtGui", "QtWidgets", "QtQuick", "QtQuickPrivate", "QtQml", "QtQmlPrivate", "QtCorePrivate", "QtGuiPrivate")
+
+ -- add headers
+ add_headerfiles("src/*.h")
+
+ -- add files
+ add_files("src/*.cpp")
+ add_files("src/mainwindow.ui")
+
+ -- add files with Q_OBJECT meta (only for qt.moc)
+ add_files("src/mainwindow.h")
+
+