root / mikrokopter / mikrokopter / CMakeLists.txt @ 98711613
History | View | Annotate | Download (1.53 KB)
1 |
cmake_minimum_required(VERSION 2.4.6) |
---|---|
2 |
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake) |
3 |
|
4 |
# Set the build type. Options are: |
5 |
# Coverage : w/ debug symbols, w/o optimization, w/ code-coverage |
6 |
# Debug : w/ debug symbols, w/o optimization |
7 |
# Release : w/o debug symbols, w/ optimization |
8 |
# RelWithDebInfo : w/ debug symbols, w/ optimization |
9 |
# MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries |
10 |
#set(ROS_BUILD_TYPE RelWithDebInfo) |
11 |
|
12 |
rosbuild_init() |
13 |
|
14 |
#set the default path for built executables to the "bin" directory |
15 |
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin) |
16 |
#set the default path for built libraries to the "lib" directory |
17 |
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib) |
18 |
|
19 |
set(CONTROL_PATH ../../control) |
20 |
|
21 |
#uncomment if you have defined messages |
22 |
rosbuild_genmsg() |
23 |
#uncomment if you have defined services |
24 |
#rosbuild_gensrv() |
25 |
|
26 |
include_directories(${CONTROL_PATH}) |
27 |
|
28 |
rosbuild_add_executable(${PROJECT_NAME} src/mikrokopter_node.cpp src/interface.cpp) |
29 |
target_link_libraries(${PROJECT_NAME} serial) |
30 |
|
31 |
rosbuild_add_executable(externctrl_client src/externctrl_client.cpp) |
32 |
rosbuild_add_executable(keyboard_control src/keyboard_control.cpp src/nav_lib.cpp) |
33 |
target_link_libraries(keyboard_control ncurses) |
34 |
rosbuild_add_executable(joystick_control src/joystick_control.cpp src/nav_lib.cpp) |
35 |
rosbuild_add_executable(node_control src/node_control.cpp src/nav_lib.cpp) |
36 |
rosbuild_add_executable(CoordToPID src/CoordToPID.cpp src/nav_lib.cpp ${CONTROL_PATH}/pid_control.cpp) |
37 |
rosbuild_add_executable(mk_wrapper src/mk_wrapper.cpp) |