From 36c1801e18be104adb53bfe87f03673ce41dbb09 Mon Sep 17 00:00:00 2001 From: Dominic Spill Date: Mon, 7 Apr 2014 14:57:18 +0100 Subject: [PATCH] Add flag for building bluez linked tools --- host/ubertooth-tools/src/CMakeLists.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/host/ubertooth-tools/src/CMakeLists.txt b/host/ubertooth-tools/src/CMakeLists.txt index fd2b4285..aefa7338 100644 --- a/host/ubertooth-tools/src/CMakeLists.txt +++ b/host/ubertooth-tools/src/CMakeLists.txt @@ -23,7 +23,6 @@ find_package(BTBB REQUIRED) find_package(PCAP) -find_package(BLUETOOTH) if(MSVC) include_directories(../getopt) @@ -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})