source: flair-src/trunk/tools/Controller/Mavlink/CMakeLists.txt@ 186

Last change on this file since 186 was 107, checked in by Sanahuja Guillaume, 8 years ago

m

File size: 902 bytes
Line 
1PROJECT(MavPlanner)
2cmake_minimum_required(VERSION 2.8)
3include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
4
5if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i686" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i586" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64")
6
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
17FILE(GLOB MAVPLANNER_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
18
19ADD_EXECUTABLE(${PROJECT_NAME}
20 ${MAVPLANNER_SRC}
21)
22
23TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${FLAIR_LIBRARIES_NRT})
24
25INSTALL(
26 TARGETS ${PROJECT_NAME}
27 RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/tools/${ARCH_DIR}
28)
29
30SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
31
32else()
33warn("${PROJECT_NAME} will not be built for ${CMAKE_SYSTEM_PROCESSOR} architecture")
34endif()
Note: See TracBrowser for help on using the repository browser.