-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
52 lines (43 loc) · 1.18 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
cmake_minimum_required(VERSION 2.8.3)
project(dfti2)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
std_srvs
message_generation
)
## Generate messages in the 'msg' folder
add_message_files(
DIRECTORY msg
FILES
dftiData.msg
)
## Generate added messages and services with any dependencies listed here
generate_messages(
DEPENDENCIES
std_msgs
std_srvs
)
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES dfti2
# CATKIN_DEPENDS roscpp rospy std_msgs
# DEPENDS system_lib
)
include_directories(
include
${catkin_INCLUDE_DIRS}
)
add_executable(dfti src/dfti.cpp)
target_link_libraries(dfti ${catkin_LIBRARIES})
add_dependencies(dfti ${catkin_EXPORTED_TARGETS})
add_executable(pixhawk_publisher src/pixhawk_publisher.cpp)
target_link_libraries(pixhawk_publisher ${catkin_LIBRARIES})
add_dependencies(pixhawk_publisher ${catkin_EXPORTED_TARGETS})
add_executable(auto_excitation src/auto_excitation.cpp)
target_link_libraries(auto_excitation ${catkin_LIBRARIES})
add_dependencies(auto_excitation ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
catkin_install_python(PROGRAMS src/arduino_publisher.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)