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


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

added compile info

Location:
trunk/lib/FlairFilter
Files:
2 edited

Legend:

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

    r7 r45  
    4444
    4545SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
     46
     47add_custom_target(
     48        compile_info
     49        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
     50)
     51
     52add_dependencies(${PROJECT_NAME} compile_info)
  • trunk/lib/FlairFilter/src/UavMultiplex.cpp

    r15 r45  
    2222#include <Tab.h>
    2323#include <GridLayout.h>
     24#include "compile_info.h"
    2425
    2526using std::string;
    2627using namespace flair::core;
    2728using namespace flair::gui;
     29
     30//todo: put it on seprate file, but not possible with static lib?
     31static void constructor() __attribute__((constructor));
     32
     33void constructor() {
     34  compile_info("FlairFilter");
     35}
     36
    2837
    2938namespace flair {
Note: See TracChangeset for help on using the changeset viewer.