Last change
on this file since 68 was 46, checked in by Thomas Fuhrmann, 8 years ago |
Add the mavlink branch
|
File size:
734 bytes
|
Line | |
---|
1 | PROJECT(mavlink_test)
|
---|
2 | cmake_minimum_required(VERSION 2.8)
|
---|
3 |
|
---|
4 | SET(FLAIR_USE_SENSOR_ACTUATOR TRUE)
|
---|
5 |
|
---|
6 | include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
|
---|
7 | include(${FLAIR_USE_FILE})
|
---|
8 |
|
---|
9 | ADD_DEFINITIONS(-fpermissive)
|
---|
10 |
|
---|
11 | INCLUDE_DIRECTORIES(
|
---|
12 | ${FLAIR_INCLUDE_DIR}
|
---|
13 | ${CMAKE_SOURCE_DIR}/src
|
---|
14 | ${CMAKE_SOURCE_DIR}/src/mavlink_generated_messages/common
|
---|
15 | )
|
---|
16 |
|
---|
17 | #~/dev/mavlink/generated_messages/common
|
---|
18 |
|
---|
19 | LINK_DIRECTORIES (
|
---|
20 | ${FLAIR_LIBRARY_DIR}
|
---|
21 | )
|
---|
22 |
|
---|
23 | ADD_EXECUTABLE(${PROJECT_NAME}
|
---|
24 | src/Mavlink_test.cpp
|
---|
25 | src/main.cpp
|
---|
26 | )
|
---|
27 |
|
---|
28 | TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${FLAIR_LIBRARIES_NRT})
|
---|
29 |
|
---|
30 | INSTALL(
|
---|
31 | TARGETS ${PROJECT_NAME}
|
---|
32 | RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/tools/${ARCH_DIR}
|
---|
33 | )
|
---|
34 |
|
---|
35 | SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.