-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
64 lines (54 loc) · 1.42 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
cmake_minimum_required(VERSION 2.8.3)
project(gim30)
find_package(catkin REQUIRED COMPONENTS
roscpp
sensor_msgs
)
catkin_package(
CATKIN_DEPENDS roscpp sensor_msgs
)
include_directories(
include
include/urg_library-1.1.8/include
${catkin_INCLUDE_DIRS}
)
link_directories(
/usr/local/lib
)
add_executable(gim30_node
src/gim30_node.cpp
src/gim30_node_wrapper.cpp
)
add_library(urg_c
include/urg_library-1.1.8/src/urg_connection.c
include/urg_library-1.1.8/src/urg_debug.c
include/urg_library-1.1.8/src/urg_ring_buffer.c
include/urg_library-1.1.8/src/urg_sensor.c
include/urg_library-1.1.8/src/urg_serial.c
include/urg_library-1.1.8/src/urg_serial_linux.c
include/urg_library-1.1.8/src/urg_serial_utils.c
include/urg_library-1.1.8/src/urg_serial_utils_linux.c
include/urg_library-1.1.8/src/urg_tcpclient.c
include/urg_library-1.1.8/src/urg_utils.c
)
add_dependencies(gim30_node urg_c gim30_generate_messages_cpp)
target_link_libraries(gim30_node
urg_c
${catkin_LIBRARIES}
)
# Install
install(TARGETS gim30_node
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
)
foreach(dir launch)
install(DIRECTORY ${dir}/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/${dir})
endforeach(dir)
# Test
if (CATKIN_ENABLE_TESTING)
find_package(roslaunch REQUIRED)
roslaunch_add_file_check(launch)
endif()