| 35 | | used by demos/tools, it helps adding include dirs and libraries for programs using flair |
| | 35 | Used by demos/tools, it helps adding include dirs and libraries for programs using flair. |
| | 36 | |
| | 37 | It 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 | |
| | 43 | Needed 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 | |
| | 52 | You have to set these variables to true in your ''CMakeLists.txt'', if you need need these functionalities. |
| | 53 | |
| | 54 | In 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 | |
| | 59 | Take a look at !CircleFollower demo [source:flair-src/trunk/demos/CircleFollower/uav/CMakeLists.txt CMakeLists.txt] file to see how it is used. |