forked from A-ppIes/px4ctrl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·62 lines (50 loc) · 1.19 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
52
53
54
55
56
57
58
59
60
61
62
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
dynamic_reconfigure
quadrotor_msgs
geometry_msgs
sensor_msgs
uav_utils
mavros_msgs
)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
find_package(Eigen3 REQUIRED)
## Generate dynamic reconfigure parameters in the 'cfg' folder
generate_dynamic_reconfigure_options(
cfg/fake_rc.cfg
)
catkin_package(
INCLUDE_DIRS include
LIBRARIES px4ctrl
CATKIN_DEPENDS dynamic_reconfigure quadrotor_msgs roscpp rospy geometry_msgs sensor_msgs mavros_msgs
DEPENDS Eigen3
)
include_directories(
${catkin_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIRS}
include
)
set(LIBS
${catkin_LIBRARIES}
${EIGEN3_LIBS}
)
add_executable(px4ctrl_node
src/PX4Ctrlnode.cpp
src/PX4Ctrlfsm.cpp
src/PX4Ctrlparam.cpp
src/controller.cpp
src/ROScallback.cpp
)
target_link_libraries(px4ctrl_node
${LIBS}
)
#catkin_install_python(PROGRAMS thrust_calibrate_scrips/thrust_calibrate.py
# DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
#)