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


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

added compile info

Location:
trunk/lib/FlairSensorActuator
Files:
2 edited

Legend:

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

    r3 r45  
    4343FILE(GLOB files "${CMAKE_CURRENT_SOURCE_DIR}/src/*.h")
    4444INSTALL(FILES ${files} DESTINATION $ENV{FLAIR_ROOT}/flair-dev/include/${PROJECT_NAME})
     45
     46add_custom_target(
     47        compile_info
     48        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
     49)
     50
     51add_dependencies(${PROJECT_NAME} compile_info)
  • trunk/lib/FlairSensorActuator/src/Bldc.cpp

    r15 r45  
    2121#include <DoubleSpinBox.h>
    2222#include <sstream>
     23#include "compile_info.h"
     24
     25//todo: put it on seprate file, but not possible with static lib?
     26static void constructor() __attribute__((constructor));
     27
     28void constructor() {
     29  compile_info("FlairSensorActuator");
     30}
    2331
    2432using std::string;
Note: See TracChangeset for help on using the changeset viewer.