-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
43 lines (34 loc) · 940 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
cmake_minimum_required(VERSION 3.0.2)
project(flappy_bird_gazebo)
find_package(catkin REQUIRED COMPONENTS
gazebo_msgs
roscpp
roslint
)
find_package(gazebo REQUIRED)
find_package(gazebo_ros REQUIRED)
catkin_package(
CATKIN_DEPENDS gazebo_msgs roscpp
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${GAZEBO_INCLUDE_DIRS}
${YAML_INCLUDE_DIRS}
)
link_directories(${GAZEBO_LIBRARY_DIRS})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GAZEBO_CXX_FLAGS}")
add_library(flappyBirdPlugin SHARED src/flappyBirdPlugin.cpp)
target_link_libraries(flappyBirdPlugin ${catkin_LIBRARIES}
${GAZEBO_LIBRARIES} yaml-cpp
)
add_library(CameraMoverPlugin SHARED src/CameraMoverPlugin.cpp)
target_link_libraries(CameraMoverPlugin ${catkin_LIBRARIES}
${GAZEBO_LIBRARIES}
)
catkin_install_python(PROGRAMS scripts/flyer.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
set(ROSLINT_PYTHON_OPTS "1>&2")
roslint_cpp()
roslint_python()