-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
30 lines (22 loc) · 1.1 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
cmake_minimum_required(VERSION 2.8.3)
project(flightmare_simulator)
# set default build type
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE RelWithDebInfo)
endif()
find_package(OpenCV REQUIRED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -Wall")
find_package(catkin REQUIRED COMPONENTS roscpp quadrotor_msgs nav_msgs sensor_msgs flightlib tf2_ros image_transport pcl_conversions)
find_package(Eigen3 REQUIRED)
find_package(catkin_simple)
catkin_simple()
include_directories(include ${EIGEN3_INCLUDE_DIR} ${catkin_INCLUDE_DIRS} ${zmqq_INCLUDE_DIR} )
catkin_package(
INCLUDE_DIRS
LIBRARIES
CATKIN_DEPENDS roscpp quadrotor_msgs nav_msgs sensor_msgs tf2_ros flightlib image_transport
DEPENDS EIGEN3)
add_library(flightmare_quadrotor_dynamics src/dynamics/Quadrotor.cpp)
add_executable(quadrotor_simulator_so3 src/quadrotor_simulator_so3.cpp)
target_link_libraries(quadrotor_simulator_so3 flightmare_quadrotor_dynamics ${OpenCV_LIBRARIES} ${catkin_LIBRARIES} stdc++fs zmq zmqpp)
add_dependencies(quadrotor_simulator_so3 ${OpenCV_LIBRARIES} ${catkin_EXPORTED_TARGETS} ${${PROJECT_NAME}_EXPORTED_TARGETS})