summaryrefslogtreecommitdiff
path: root/tests/projects/c++/modules/namespace/xmake.lua
blob: aefa1ba0977e3516882260fa12515bde34d52e05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
add_rules("mode.release", "mode.debug")
set_languages("c++20")

namespace("foo", function()
    target("dep")
        set_kind("static")
        add_files("src/hello.mpp", "src/mod.mpp", {public = true})
        add_files("src/hello_impl.cpp", "src/mod_impl.cpp")

    target("binary")
        set_kind("binary")
        add_files("src/main.cpp")
        add_deps("dep")
end)