-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
44 lines (36 loc) · 1.08 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
cmake_minimum_required(VERSION 3.0.2)
project(husky)
## Compile as C++11, supported in ROS Kinetic and newer
# add_compile_options(-std=c++11)
add_library(best-fit depends/bestfit/BestFit.cpp
depends/bestfit/Double.cpp
depends/bestfit/Shapes.cpp)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
geometry_msgs
tf2
tf2_ros
nav_msgs
)
catkin_package(
INCLUDE_DIRS include
# LIBRARIES husky
CATKIN_DEPENDS roscpp rospy std_msgs geometry_msgs tf2 tf2_ros
# DEPENDS system_lib
)
include_directories(
include
${catkin_INCLUDE_DIRS}
depends
)
add_library(${PROJECT_NAME}lib SHARED src/husky.cpp)
target_link_libraries(${PROJECT_NAME}lib ${catkin_LIBRARIES} best-fit)
add_executable(${PROJECT_NAME}_node src/husky_node.cpp)
target_link_libraries(${PROJECT_NAME}_node ${catkin_LIBRARIES} ${PROJECT_NAME}lib)
if(CATKIN_ENABLE_TESTING)
find_package(rostest REQUIRED)
add_rostest_gtest(utest_node test/utest_launch.test test/utest.cpp)
target_link_libraries(utest_node ${catkin_LIBRARIES} ${PROJECT_NAME}lib)
endif()