Changeset 45 in flair-src for trunk/lib/FlairSimulator/CMakeLists.txt


Ignore:
Timestamp:
Jul 18, 2016, 4:13:56 PM (5 years ago)
Author:
Sanahuja Guillaume
Message:

added compile info

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairSimulator/CMakeLists.txt

    r8 r45  
    2222        ${CMAKE_CURRENT_SOURCE_DIR}/src
    2323        ${CMAKE_CURRENT_SOURCE_DIR}/src/unexported
    24 #       $ENV{FLAIR_ROOT}/uav_dev/include
    2524        ${CMAKE_CURRENT_SOURCE_DIR}/../FlairCore/src
    2625        ${CMAKE_CURRENT_SOURCE_DIR}/../FlairSensorActuator/src
     
    3433SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
    3534
     35add_custom_target(
     36        compile_info
     37        COMMAND $ENV{FLAIR_ROOT}/flair-dev/scripts/compile_info.sh ${CMAKE_C_COMPILER} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src/unexported/compile_info.h
     38)
     39
    3640add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/no_gl)
     41add_dependencies(FlairSimulator_nogl compile_info)
    3742if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i686" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i586" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64")
    38 add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/gl)
     43add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/gl)
     44add_dependencies(FlairSimulator_gl compile_info)
    3945endif()
Note: See TracChangeset for help on using the changeset viewer.