-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCMakeLists.txt
75 lines (64 loc) · 1.71 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
73
74
75
cmake_minimum_required(VERSION 3.0.2)
project(canopen_test_utils)
find_package(Threads REQUIRED)
find_package(catkin REQUIRED
COMPONENTS
canopen_402
canopen_master
)
catkin_package()
include_directories(${Boost_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS})
# canopen_elmo_console
add_executable(canopen_elmo_console
src/elmo_console.cpp
)
target_link_libraries(canopen_elmo_console
${catkin_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
)
install(
TARGETS
canopen_elmo_console
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
catkin_install_python(
PROGRAMS
scripts/check_sync.py
scripts/detect_jumps.py
scripts/elmo_mapping.py
scripts/nanotec_mapping.py
scripts/old_elmo_mapping.py
scripts/old_schunk_mapping.py
scripts/pdo.py
scripts/pub_pdo.py
scripts/readable.py
scripts/schunk_mapping.py
scripts/socket_buffer.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(
PROGRAMS
scripts/prepare.sh
scripts/runtest.sh
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(
DIRECTORY
config
launch
urdf
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
if(CATKIN_ENABLE_TESTING)
find_package(roslaunch REQUIRED)
roslaunch_add_file_check(launch/sim_rig1.launch)
roslaunch_add_file_check(launch/sim_rig2.launch)
roslaunch_add_file_check(launch/sim_rig12.launch)
roslaunch_add_file_check(launch/sim_rig1_rig2.launch)
roslaunch_add_file_check(launch/hw_rig1.launch)
roslaunch_add_file_check(launch/hw_rig2.launch)
roslaunch_add_file_check(launch/hw_rig12.launch)
roslaunch_add_file_check(launch/hw_rig1_rig2.launch)
endif()