-
Notifications
You must be signed in to change notification settings - Fork 0
/
xmake.lua
executable file
·35 lines (21 loc) · 893 Bytes
/
xmake.lua
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
27
28
29
30
31
32
33
34
add_rules("mode.debug", "mode.release")
add_requires("protobuf-cpp")
add_requires("grpc 1.54.3" , {system = false})
local ros_lib_dirs = "/opt/ros/noetic/lib/"
local ros_include_dirs = "/opt/ros/noetic/include"
--Get protoc binary
-- print("exec dir ", l_exec)
-- os.execute("pwd")
--os.execute("rm -rf src/grpc_interface/gen_protoc/*")
local proto_files_path = "$(curdir)/src/grpc_interface/proto/"
target("ros1_pub_node")
set_kind("binary")
set_languages("c++17")
add_files("src/ros1_nodes/ros1_pub_node.cpp")
add_includedirs("src/")
add_includedirs(ros_include_dirs)
add_packages("protobuf-cpp")
add_packages("grpc")
add_rules("protobuf.cpp")
-- add_files(proto_files_path .. "/*.proto" , {proto_rootdir = proto_files_path, proto_grpc_cpp_plugin = true})
-- add_files(proto_files_path .. "/*.proto", {proto_rootdir = proto_files_path})