forked from larics/storm_gazebo_ros_magnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
35 lines (27 loc) · 855 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
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(storm_gazebo_magnet)
find_package(catkin REQUIRED COMPONENTS
geometry_msgs
roscpp
gazebo_plugins
)
find_package(gazebo REQUIRED)
include_directories(
include
${Boost_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
${GAZEBO_INCLUDE_DIRS}
${GAZEBO_PLUGINS_INCLUDE_DIRS}
)
find_package(gazebo REQUIRED)
find_package(Boost REQUIRED COMPONENTS thread)
add_definitions(-std=c++11)
list(APPEND CMAKE_CXX_FLAGS "${GAZEBO_CXX_FLAGS} -O2")
catkin_package(
INCLUDE_DIRS include
LIBRARIES
CATKIN_DEPENDS geometry_msgs roscpp gazebo_plugins
)
add_library(storm_gazebo_dipole_magnet src/dipole_magnet.cc)
add_dependencies(storm_gazebo_dipole_magnet ${catkin_EXPORTED_TARGETS})
target_link_libraries(storm_gazebo_dipole_magnet ${GAZEBO_LIBRARIES} ${catkin_LIBRARIES} ${Boost_LIBRARIES})