summaryrefslogtreecommitdiff
path: root/xmake/templates/c/static/project/xmake.lua
blob: 632776b9692e4d1ea254527a15c18937be91a89a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
-- add modes: debug and release
add_rules("mode.debug", "mode.release")

-- add target
target("${TARGETNAME}")

    -- set kind
    set_kind("static")

    -- add files
    add_files("src/interface.c")

-- add target
target("${TARGETNAME}_demo")

    -- set kind
    set_kind("binary")

    -- add deps
    add_deps("${TARGETNAME}")

    -- add files
    add_files("src/test.c")

${FAQ}