summaryrefslogtreecommitdiff
path: root/xmake/templates/c++/static_library/project/xmake.lua
blob: ade7a520dc3f32130c6e4c8ffe3eadabe31a528a (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
26

-- 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.cpp")

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

    -- set kind
    set_kind("binary")

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

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

${FAQ}