summaryrefslogtreecommitdiff
path: root/tests/projects/c++/static_library/xmake.lua
blob: b084aab18583906fdc4ba05192db266f93e787ee (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 rules
add_rules("mode.debug", "mode.release")

-- add target
target("static_library_c++")

    -- set kind
    set_kind("static")

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

-- add target
target("test")

    -- set kind
    set_kind("binary")

    -- add deps
    add_deps("static_library_c++")

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