-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
66 lines (58 loc) · 1.03 KB
/
CMakeLists.txt
File metadata and controls
66 lines (58 loc) · 1.03 KB
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
cmake_minimum_required(VERSION 3.0.2)
project(tigra_software)
find_package(catkin REQUIRED
COMPONENTS
roscpp
rospy
tf
nav_msgs
geometry_msgs
tigra_msgs
realtime_tools
)
find_package(Threads REQUIRED)
if(Threads_FOUND)
message("<<< Threads found >>>")
else()
message(FATAL_ERROR "<<< Cannot find Thread >>>s")
endif()
find_package(Boost 1.7 REQUIRED
COMPONENTS
system
)
if(Boost_FOUND)
message("<<< Boost found >>>")
else()
message(FATAL_ERROR "<<< Cannot find Boost >>>")
endif()
catkin_package(
INCLUDE_DIRS
include
CATKIN_DEPENDS
roscpp
rospy
tf
nav_msgs
geometry_msgs
tigra_msgs
realtime_tools
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${Boost_INCLUDE_DIR}
)
set(ROBOT_LAYER_NAME robot_layer)
set(ROBOT_LAYER_SRC
src/robot_layer/main.cpp
src/robot_layer/odom_model.cpp
)
add_executable(
${ROBOT_LAYER_NAME} ${ROBOT_LAYER_SRC}
)
target_link_libraries(
${ROBOT_LAYER_NAME}
${catkin_LIBRARIES}
${Boost_LIBRARIES}
Threads::Threads
)