-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
51 lines (43 loc) · 1.29 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
45
46
47
48
49
50
51
cmake_minimum_required(VERSION 2.8.3)
project(px4ctrl)
set(CMAKE_VERBOSE_MAKEFILE "false")
set(CMAKE_BUILD_TYPE "Release")
add_compile_options(-std=c++11)
add_compile_options(-std=c++14)
set(CMAKE_CXX_FLAGS "-std=c++11")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g")
set(PYTHON_EXECUTABLE "/usr/bin/python3")
#find_package(PythonInterp REQUIRED 3)
find_package(Eigen3 REQUIRED)
find_package(Boost REQUIRED COMPONENTS system)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
mavros
tf
tf2_ros
tf2_eigen
message_filters
tf2_geometry_msgs
quadrotor_msgs
mavros_msgs
geometry_msgs
std_msgs
nav_msgs
sensor_msgs
easondrone_msgs
)
catkin_package()
include_directories(
${catkin_INCLUDE_DIRS}
${EIGEN_INCLUDE_DIRS}
include
)
add_executable(px4ctrl_control src/PX4CtrlFSM.cpp)
target_link_libraries(px4ctrl_control ${catkin_LIBRARIES})
add_executable(ekf2_fusion src/ekf2_fusion.cpp)
target_link_libraries(ekf2_fusion ${catkin_LIBRARIES})
add_executable(px4ctrl_terminal src/px4ctrl_terminal.cpp)
target_link_libraries(px4ctrl_terminal ${catkin_LIBRARIES})
catkin_install_python(PROGRAMS scripts/px4ctrl_navigate.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})