source: flair-src/branches/mavlink/lib/FlairSimulator/CMakeLists.txt@ 80

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

simulator

File size: 1.3 KB
Line 
1PROJECT(FlairSimulator)
2cmake_minimum_required(VERSION 2.8)
3include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
4
5find_package(LibXml2 REQUIRED)
6
7execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion
8 OUTPUT_VARIABLE GCC_VERSION)
9
10if (GCC_VERSION VERSION_GREATER 4.3 OR GCC_VERSION VERSION_EQUAL 4.3)
11 if (GCC_VERSION VERSION_GREATER 4.7 OR GCC_VERSION VERSION_EQUAL 4.7)
12 ADD_DEFINITIONS("-std=c++11")
13 else()
14 ADD_DEFINITIONS("-std=c++0x")
15 endif()
16else()
17 message(STATUS "GCC version < 4.3, c+11 is not supported!")
18endif()
19
20INCLUDE_DIRECTORIES(
21 ${LIBXML2_INCLUDE_DIR}
22 ${CMAKE_CURRENT_SOURCE_DIR}/src
23 ${CMAKE_CURRENT_SOURCE_DIR}/src/unexported
24# $ENV{FLAIR_ROOT}/uav_dev/include
25 ${CMAKE_CURRENT_SOURCE_DIR}/../FlairCore/src
26 ${CMAKE_CURRENT_SOURCE_DIR}/../FlairSensorActuator/src
27 ${CMAKE_SYSROOT}/usr/include/vrpn
28 ${CMAKE_SYSROOT}/usr/include/opencv
29 ${CMAKE_SYSROOT}/usr/include/irrlicht
30)
31
32FILE(GLOB SIMU_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
33
34SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
35
36add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/no_gl)
37if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i686" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i586" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64")
38add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/gl)
39endif()
Note: See TracBrowser for help on using the repository browser.