summaryrefslogtreecommitdiff
path: root/xmake/repository/templates/c++/qt/widgetapp_static/xmake.lua
blob: 2c357e5319ca5d032a23543d6e815d7b1abbc5c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
add_rules("mode.debug", "mode.release")

includes("@builtin/qt")

target("${TARGET_NAME}")
    add_rules("qt.widgetapp_static")
    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")

    -- add plugin: QSvgPlugin (optional)
    add_frameworks("QtSvg")
    qt_add_static_plugins("QSvgPlugin", {linkdirs = "plugins/imageformats", links = {"qsvg"}})

${FAQ}