Skip to content

Commit

Permalink
Add flag for building bluez linked tools
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicgs committed Apr 7, 2014
1 parent 8eb6e9b commit 36c1801
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions host/ubertooth-tools/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

find_package(BTBB REQUIRED)
find_package(PCAP)
find_package(BLUETOOTH)

if(MSVC)
include_directories(../getopt)
Expand Down Expand Up @@ -55,10 +54,13 @@ endif()

LIST(APPEND TOOLS ubertooth-rx ubertooth-dump ubertooth-util ubertooth-btle)

if ( ${LIBBLUETOOTH_FOUND} )
LIST(APPEND TOOLS ubertooth-follow ubertooth-scan)
include_directories(${LIBBLUETOOTH_INCLUDE_DIR})
LIST(APPEND TOOLS_LINK_LIBS ${LIBBLUETOOTH_LIBRARIES})
if(USE_BLUEZ)
find_package(BLUETOOTH REQUIRED)
if ( ${LIBBLUETOOTH_FOUND} )
LIST(APPEND TOOLS ubertooth-follow ubertooth-scan)
include_directories(${LIBBLUETOOTH_INCLUDE_DIR})
LIST(APPEND TOOLS_LINK_LIBS ${LIBBLUETOOTH_LIBRARIES})
endif()
endif()

foreach(tool ${TOOLS})
Expand Down

0 comments on commit 36c1801

Please sign in to comment.