-
Notifications
You must be signed in to change notification settings - Fork 16
/
CMakeLists.txt
49 lines (39 loc) · 925 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
45
46
47
48
49
cmake_minimum_required(VERSION 2.8.3)
project(px4ctrl)
set(CMAKE_VERBOSE_MAKEFILE "false")
set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "-std=c++11")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g")
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
quadrotor_msgs
geometry_msgs
sensor_msgs
uav_utils
mavros
)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
find_package(Eigen3 REQUIRED)
catkin_package(
)
include_directories(
${catkin_INCLUDE_DIRS}
${EIGEN_INCLUDE_DIRS}
include/${PROJECT_NAME}
include
)
add_executable(px4ctrl_node
src/px4ctrl_node.cpp
src/PX4CtrlFSM.cpp
src/PX4CtrlParam.cpp
src/controller.cpp
src/input.cpp
)
add_dependencies(px4ctrl_node quadrotor_msgs)
target_link_libraries(px4ctrl_node
${catkin_LIBRARIES}
)
catkin_install_python(PROGRAMS thrust_calibrate_scrips/thrust_calibrate.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)