Changeset 45 in flair-src for trunk/lib/FlairSimulator


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

added compile info

Location:
trunk/lib/FlairSimulator
Files:
2 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()
  • trunk/lib/FlairSimulator/src/Gui.cpp

    r15 r45  
    3131#include <algorithm>
    3232#include <GL/gl.h>
     33#include "compile_info.h"
     34
     35//todo: put it on seprate file, but not possible with static lib?
     36static void constructor() __attribute__((constructor));
     37
     38void constructor() {
     39  compile_info("FlairSensorActuator");
     40}
    3341
    3442using namespace irr;
Note: See TracChangeset for help on using the changeset viewer.