Changeset 45 in flair-dev for trunk/cmake-modules
- Timestamp:
- Jan 10, 2017, 3:57:32 PM (8 years ago)
- Location:
- trunk/cmake-modules
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cmake-modules/FlairUseFile.cmake
r44 r45 17 17 else() 18 18 message(STATUS "GCC version < 4.3, c+11 is not supported!") 19 endif() 20 21 #check if we have a flair-hds directory 22 if (IS_DIRECTORY $ENV{FLAIR_ROOT}/flair-hds ) 23 message("found flair-hds directory") 24 SET(FOUND_HDS_DIR TRUE) 25 SET(FLAIRHDS_LIBRARY_DIR 26 $ENV{FLAIR_ROOT}/flair-hds/bin/lib/${ARCH_DIR} 27 ) 19 28 endif() 20 29 … … 51 60 SET(FLAIR_LIBRARIES FlairCore ${FLAIR_LIBRARIES}) 52 61 62 #vision filter lib 63 IF (FLAIR_USE_VISION_FILTER) 64 if(FOUND_HDS_DIR) 65 SET(FLAIR_INCLUDE_DIR ${FLAIR_INCLUDE_DIR} $ENV{FLAIR_ROOT}/flair-hds/dev/include/VisionFilter) 66 SET(FLAIR_LIBRARIES ${FLAIRHDS_LIBRARY_DIR}/libVisionFilter.a ${FLAIRHDS_LIBRARY_DIR}/libdspcv_gpp.a ${FLAIR_LIBRARIES}) 67 else() 68 SET(FLAIR_INCLUDE_DIR ${FLAIR_INCLUDE_DIR} $ENV{FLAIR_ROOT}/flair-dev/include/FlairVisionFilter) 69 SET(FLAIR_LIBRARIES ${FLAIR_LIBRARY_DIR}/libFlairVisionFilter.a ${FLAIR_LIBRARIES}) 70 endif() 71 ENDIF (FLAIR_USE_VISION_FILTER) 72 53 73 #sensor and actuator lib 54 74 IF (FLAIR_USE_SENSOR_ACTUATOR) … … 62 82 SET(FLAIR_LIBRARIES ${FLAIR_LIBRARY_DIR}/libFlairFilter.a iir ${FLAIR_LIBRARIES}) 63 83 ENDIF (FLAIR_USE_FILTER) 84 64 85 65 86 #meta lib … … 107 128 endif() 108 129 109 #check if we have a flair-hds directory 110 if (IS_DIRECTORY $ENV{FLAIR_ROOT}/flair-hds ) 111 message("found flair-hds directory") 112 SET(FLAIRHDS_LIBRARY_DIR 113 $ENV{FLAIR_ROOT}/flair-hds/bin/lib/${ARCH_DIR} 114 ) 115 116 if(FLAIR_USE_FILTER) 117 SET(FLAIR_INCLUDE_DIR ${FLAIR_INCLUDE_DIR} $ENV{FLAIR_ROOT}/flair-hds/dev/include/VisionFilter) 118 SET(FLAIR_LIBRARIES_NRT ${FLAIRHDS_LIBRARY_DIR}/libVisionFilter.a ${FLAIRHDS_LIBRARY_DIR}/libdspcv_gpp.a ${FLAIR_LIBRARIES_NRT}) 119 SET(FLAIR_LIBRARIES_RT ${FLAIRHDS_LIBRARY_DIR}/libVisionFilter.a ${FLAIRHDS_LIBRARY_DIR}/libdspcv_gpp.a ${FLAIR_LIBRARIES_RT}) 120 endif() 121 122 if(FLAIR_USE_META AND "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "arm") 123 SET (ARDRONE2_LIB -Wl,--whole-archive ${FLAIRHDS_LIBRARY_DIR}/libFlairArdrone2.a -Wl,--no-whole-archive) 124 set(FLAIR_LIBRARIES_NRT ${ARDRONE2_LIB} ${FLAIR_LIBRARIES_NRT} nmea) 125 endif() 130 #add ardrone2 lib 131 if(FOUND_HDS_DIR AND FLAIR_USE_META AND "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "arm") 132 SET (ARDRONE2_LIB -Wl,--whole-archive ${FLAIRHDS_LIBRARY_DIR}/libFlairArdrone2.a -Wl,--no-whole-archive) 133 set(FLAIR_LIBRARIES_NRT ${ARDRONE2_LIB} ${FLAIR_LIBRARIES_NRT} nmea) 126 134 endif()
Note:
See TracChangeset
for help on using the changeset viewer.