source: flair-src/branches/mavlink/tools/Controller/Mavlink/CMakeLists.txt@ 48

Last change on this file since 48 was 46, checked in by Thomas Fuhrmann, 8 years ago

Add the mavlink branch

File size: 734 bytes
Line 
1PROJECT(mavlink_test)
2cmake_minimum_required(VERSION 2.8)
3
4SET(FLAIR_USE_SENSOR_ACTUATOR TRUE)
5
6include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
7include(${FLAIR_USE_FILE})
8
9ADD_DEFINITIONS(-fpermissive)
10
11INCLUDE_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
19LINK_DIRECTORIES (
20 ${FLAIR_LIBRARY_DIR}
21)
22
23ADD_EXECUTABLE(${PROJECT_NAME}
24 src/Mavlink_test.cpp
25 src/main.cpp
26)
27
28TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${FLAIR_LIBRARIES_NRT})
29
30INSTALL(
31 TARGETS ${PROJECT_NAME}
32 RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/tools/${ARCH_DIR}
33)
34
35SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
Note: See TracBrowser for help on using the repository browser.