Changeset 302 in flair-src for trunk/tools/Controller/Mavlink


Ignore:
Timestamp:
Feb 25, 2019, 4:28:34 PM (6 years ago)
Author:
Sanahuja Guillaume
Message:

modifs nouveau build system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/Controller/Mavlink/CMakeLists.txt

    r107 r302  
    11PROJECT(MavPlanner)
    22cmake_minimum_required(VERSION 2.8)
    3 include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
     3include($ENV{FLAIR_ROOT}/flair-src/cmake-modules/GlobalCmakeFlair.cmake)
    44
    55if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i686" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i586" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64")
    66
    7 include(${FLAIR_USE_FILE})
    8 
    9 ADD_DEFINITIONS(-fpermissive)
    10 
    117INCLUDE_DIRECTORIES(
    12         ${FLAIR_INCLUDE_DIR}
    13         ${CMAKE_SOURCE_DIR}/src
    148        ${CMAKE_SOURCE_DIR}/src/mavlink_generated_messages/common
    159)
     
    1711FILE(GLOB MAVPLANNER_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
    1812
    19 ADD_EXECUTABLE(${PROJECT_NAME}
    20         ${MAVPLANNER_SRC}
    21 )
    22 
    23 TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${FLAIR_LIBRARIES_NRT})
    24 
    25 INSTALL(
    26         TARGETS ${PROJECT_NAME}
    27         RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/tools/${ARCH_DIR}
    28 )
    29 
    30 SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
     13FLAIR_NRT_TOOL(${PROJECT_NAME} "${MAVPLANNER_SRC}")
    3114
    3215else()
Note: See TracChangeset for help on using the changeset viewer.