-
Notifications
You must be signed in to change notification settings - Fork 16
/
CMakeLists.txt
45 lines (32 loc) · 908 Bytes
/
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(gazebo_sfm_plugin)
add_compile_options(-std=c++11)
find_package(catkin REQUIRED COMPONENTS
gazebo_ros
roscpp
)
find_package(Boost REQUIRED COMPONENTS thread)
find_package(gazebo REQUIRED)
include_directories(include)
include_directories(SYSTEM
/usr/local/include #to find lightsfm
${Boost_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
${GAZEBO_INCLUDE_DIRS}
)
link_directories(
${catkin_LIBRARY_DIRS}
${GAZEBO_LIBRARY_DIRS}
)
catkin_package(
INCLUDE_DIRS include
LIBRARIES PedestrianSFMPlugin
CATKIN_DEPENDS gazebo_ros roscpp
)
add_library(PedestrianSFMPlugin src/PedestrianSFMPlugin.cpp)
target_link_libraries(PedestrianSFMPlugin ${catkin_LIBRARIES} ${GAZEBO_LIBRARIES}) #${Boost_LIBRARIES
install(TARGETS
PedestrianSFMPlugin
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
)