-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
72 lines (58 loc) · 2.5 KB
/
CMakeLists.txt
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
cmake_minimum_required(VERSION 3.16)
set(PROTO_BASE_PATH proto)
find_package(Protobuf 3.9.1 REQUIRED)
# Generate the .h and .cxx files
protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS
${PROTO_BASE_PATH}/Vector2f.proto
${PROTO_BASE_PATH}/RobotCommand.proto
${PROTO_BASE_PATH}/RobotFeedback.proto
${PROTO_BASE_PATH}/World.proto
${PROTO_BASE_PATH}/StringEntry.proto
${PROTO_BASE_PATH}/Setting.proto
${PROTO_BASE_PATH}/WorldBall.proto
${PROTO_BASE_PATH}/WorldRobot.proto
${PROTO_BASE_PATH}/AICommand.proto
${PROTO_BASE_PATH}/State.proto
${PROTO_BASE_PATH}/RobotData.proto
${PROTO_BASE_PATH}/RobotParameters.proto
${PROTO_BASE_PATH}/Referee.proto
#grsim
${PROTO_BASE_PATH}/grSim_Commands.proto
${PROTO_BASE_PATH}/grSim_Packet.proto
${PROTO_BASE_PATH}/grSim_Replacement.proto
#mimir
${PROTO_BASE_PATH}/mimir_robotcommand.proto
# ssl input packets
#ssl-vision
${PROTO_BASE_PATH}/messages_robocup_ssl_detection.proto
${PROTO_BASE_PATH}/messages_robocup_ssl_geometry.proto
${PROTO_BASE_PATH}/messages_robocup_ssl_geometry_legacy.proto
${PROTO_BASE_PATH}/messages_robocup_ssl_wrapper.proto
${PROTO_BASE_PATH}/messages_robocup_ssl_wrapper_legacy.proto
${PROTO_BASE_PATH}/messages_robocup_ssl_wrapper_tracked.proto
${PROTO_BASE_PATH}/messages_robocup_ssl_detection_tracked.proto
#ssl-game-controller (referee)
${PROTO_BASE_PATH}/messages_robocup_ssl_game_controller_common.proto
${PROTO_BASE_PATH}/messages_robocup_ssl_game_controller_geometry.proto
${PROTO_BASE_PATH}/messages_robocup_ssl_game_controller_rcon.proto
${PROTO_BASE_PATH}/messages_robocup_ssl_game_controller_rcon_team.proto
${PROTO_BASE_PATH}/messages_robocup_ssl_game_event.proto
${PROTO_BASE_PATH}/messages_robocup_ssl_referee.proto
# New interface
${PROTO_BASE_PATH}/UiOptions.proto
${PROTO_BASE_PATH}/Handshake.proto
)
add_library(roboteam_proto STATIC
${PROTO_SRCS}
${PROTO_HDRS}
)
target_link_libraries(roboteam_proto
PUBLIC ${PROTOBUF_LIBRARIES}
)
target_include_directories(roboteam_proto
# Proto headers
PUBLIC ${PROTOBUF_INCLUDE_DIRS}
# This points to cmake-build-debug/proto/include/proto
PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/..
)
set_target_properties(roboteam_proto PROPERTIES UNITY_BUILD FALSE)