-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
50 lines (40 loc) · 1.15 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
cmake_minimum_required(VERSION 2.8.3)
project(hexa_control)
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
nav_msgs
message_generation
geometry_msgs
)
add_service_files(
FILES
Transfert.srv
)
generate_messages(
DEPENDENCIES
std_msgs
nav_msgs
)
catkin_package(
CATKIN_DEPENDS roscpp std_msgs nav_msgs message_runtime geometry_msgs
)
if ("$ENV{RESIBOTS_DIR}" STREQUAL "")
set(libdynamixel_dir "~")
else()
set(libdynamixel_dir "$ENV{RESIBOTS_DIR}")
endif()
link_directories("${libdynamixel_dir}/lib")
include_directories(
${catkin_INCLUDE_DIRS}
"${libdynamixel_dir}/include"
include
)
add_executable(hexapod_client src/hexapod_client.cpp)
target_link_libraries(hexapod_client ${catkin_LIBRARIES} dynamixel)
add_executable(hexapod_server src/hexapod_server.cpp src/robotHexa.cpp src/controllerPhase.cpp src/controllerDuty.cpp)
target_link_libraries(hexapod_server ${catkin_LIBRARIES} dynamixel)
add_executable(limit_torque_ax18 src/limit_torque_ax18.cpp)
target_link_libraries(limit_torque_ax18 ${catkin_LIBRARIES} dynamixel)
add_executable(save_traj src/save_traj.cpp)
target_link_libraries(save_traj ${catkin_LIBRARIES} dynamixel)