summaryrefslogtreecommitdiff
path: root/tests/projects/c++/protobuf/xmake.lua
blob: b340a8cd4df1c7f9a6c91a6595e64b0e97cb2c10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

-- add rules: debug and release
add_rules("mode.debug", "mode.release")

-- add protobuf
add_requires("protobuf-cpp", "protoc")

-- add target
target("console_c++")

    -- set kind
    set_kind("binary")

    -- add rules and packages
    add_rules("protobuf.cpp")
    add_packages("protobuf-cpp", "protoc")

    -- add files
    add_files("src/*.cpp", "src/*.proto")