-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
63 lines (49 loc) · 1.2 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
cmake_minimum_required(VERSION 2.8.3)
project(smads_core)
add_compile_options(-std=c++11)
find_package(Boost REQUIRED COMPONENTS regex)
find_package(Eigen3 REQUIRED)
find_package(catkin REQUIRED COMPONENTS
rospy
roscpp
std_msgs
actionlib_msgs
ros_type_introspection
topic_tools
nav_msgs
sensor_msgs
geometry_msgs
message_generation
genmsg
tf
roslib
)
catkin_python_setup()
###################################
## catkin specific configuration ##
###################################
catkin_package(
INCLUDE_DIRS include
LIBRARIES ${PROJECT_NAME}
CATKIN_DEPENDS
actionlib_msgs
nav_msgs
ros_type_introspection
topic_tools
geometry_msgs
message_runtime
DEPENDS
)
###########
## Build ##
###########
include_directories(
include
${catkin_INCLUDE_DIRS}
${Eigen_INCLUDE_DIRS}
)
add_library(gps_translator src/gps_translator.cc)
add_executable(message_translator src/message_translator.cpp)
target_link_libraries(message_translator gps_translator ${catkin_LIBRARIES})
add_executable(gps_translator_node src/gps_translator_node.cpp)
target_link_libraries(gps_translator_node gps_translator ${catkin_LIBRARIES})