Changes between Version 6 and Version 7 of cmake_modules


Ignore:
Timestamp:
02/18/19 11:14:26 (5 years ago)
Author:
Sanahuja Guillaume
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • cmake_modules

    v6 v7  
    2929* ''ADD_LIBRARY'': add a message to display architecture
    3030
    31 * ''INSTALL'': copy resources files (scripts and xml files for the demos). Resources files are places in the ''resources'' dir, and inside an arch dir. See for example in the [source:flair-src/trunk/demos/CircleFollower/uav/resources CircleFollower demo].
     31* ''INSTALL'': copy resources files (scripts and xml files for the demos). Resources files are places in the ''resources'' dir, and inside an arch dir. See for example in the [source:flair-src/trunk/demos/CircleFollower/uav/resources CircleFollower demo]. These files are not overwritten if they already exist.
    3232
    3333== [source:flair-dev/trunk/cmake-modules/FlairUseFile.cmake FlairUseFile.cmake] ==
    3434
    35 used by demos/tools, it helps adding include dirs and libraries for programs using flair
     35Used by demos/tools, it helps adding include dirs and libraries for programs using flair.
     36
     37It performs some checks:
     38* presence of libxml2 in the toolchain
     39* presence of xenomai in the toolchain
     40* gcc version (must be >= 4.3)
     41* presence of a flair-hds directory. For Heudiasyc users, see [wiki:hds_users here]
     42
     43Needed include dirs and libraries are determined using some boolean variables:
     44* ''FLAIR_USE_SIMULATOR''
     45* ''FLAIR_USE_VRPN''
     46* ''FLAIR_USE_GPS''
     47* ''FLAIR_USE_VISION_FILTER''
     48* ''FLAIR_USE_SENSOR_ACTUATOR''
     49* ''FLAIR_USE_FILTER''
     50* ''FLAIR_USE_META''
     51
     52You have to set these variables to true in your ''CMakeLists.txt'', if you need need these functionalities.
     53
     54In return, ''!FlairUseFile.cmake'' will fill 3 variables:
     55* ''${FLAIR_INCLUDE_DIR}'': list of needed include dirs
     56* ''${FLAIR_LIBRARIES_RT}'': list of needed libraries for real time (xenomai)
     57* ''${FLAIR_LIBRARIES_NRT}'': list of needed libraries for non real time
     58
     59Take a look at !CircleFollower demo [source:flair-src/trunk/demos/CircleFollower/uav/CMakeLists.txt CMakeLists.txt] file to see how it is used.