Changeset 26 in flair-dev for trunk/cmake-modules


Ignore:
Timestamp:
Jul 1, 2016, 9:29:41 AM (8 years ago)
Author:
Sanahuja Guillaume
Message:

m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmake-modules/FlairUseFile.cmake

    r10 r26  
    103103endif()
    104104
     105#check if we have a flair-hds directory
     106if (IS_DIRECTORY $ENV{FLAIR_ROOT}/flair-hds )
     107        message("found flair-hds directory")
     108        SET(FLAIRHDS_LIBRARY_DIR
     109                $ENV{FLAIR_ROOT}/flair-hds/bin/lib/${ARCH_DIR}
     110        )       
     111
     112        if(FLAIR_USE_FILTER)
     113                SET(FLAIR_INCLUDE_DIR ${FLAIR_INCLUDE_DIR} $ENV{FLAIR_ROOT}/flair-hds/dev/include/VisionFilter)
     114                SET(FLAIR_LIBRARIES_NRT ${FLAIRHDS_LIBRARY_DIR}/libVisionFilter.a ${FLAIRHDS_LIBRARY_DIR}/libdspcv_gpp.a ${FLAIR_LIBRARIES_NRT})
     115                SET(FLAIR_LIBRARIES_RT ${FLAIRHDS_LIBRARY_DIR}/libVisionFilter.a ${FLAIRHDS_LIBRARY_DIR}/libdspcv_gpp.a ${FLAIR_LIBRARIES_RT})
     116        endif()
     117
     118        if(FLAIR_USE_META AND "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "arm")       
     119                SET (ARDRONE2_LIB -Wl,--whole-archive ${FLAIRHDS_LIBRARY_DIR}/libFlairArdrone2.a -Wl,--no-whole-archive)
     120                set(FLAIR_LIBRARIES_NRT ${ARDRONE2_LIB}  ${FLAIR_LIBRARIES_NRT} nmea)
     121                SET(FLAIR_LIBRARY_DIR   ${FLAIR_LIBRARY_DIR} $ENV{FLAIR_ROOT}/flair-hds/bin/lib/${ARCH_DIR})
     122
     123        endif()
     124endif()
Note: See TracChangeset for help on using the changeset viewer.