From f44ecaa4f27e7538ddcad66d40e543bffa2d2d86 Mon Sep 17 00:00:00 2001 From: manuel Date: Sun, 4 Jun 2017 16:57:49 +0200 Subject: sync with upstream --- project/cmake/modules/FindBluetooth.cmake | 44 ------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 project/cmake/modules/FindBluetooth.cmake (limited to 'project/cmake/modules/FindBluetooth.cmake') diff --git a/project/cmake/modules/FindBluetooth.cmake b/project/cmake/modules/FindBluetooth.cmake deleted file mode 100644 index a69980d..0000000 --- a/project/cmake/modules/FindBluetooth.cmake +++ /dev/null @@ -1,44 +0,0 @@ -#.rst: -# FindBluetooth -# --------- -# Finds the Bluetooth library -# -# This will will define the following variables:: -# -# BLUETOOTH_FOUND - system has Bluetooth -# BLUETOOTH_INCLUDE_DIRS - the Bluetooth include directory -# BLUETOOTH_LIBRARIES - the Bluetooth libraries -# -# and the following imported targets:: -# -# Bluetooth::Bluetooth - The Bluetooth library - -if(PKG_CONFIG_FOUND) - pkg_check_modules(PC_BLUETOOTH bluez bluetooth QUIET) -endif() - -find_path(BLUETOOTH_INCLUDE_DIR NAMES bluetooth/bluetooth.h - PATHS ${PC_BLUETOOTH_INCLUDEDIR}) -find_library(BLUETOOTH_LIBRARY NAMES bluetooth libbluetooth - PATHS ${PC_BLUETOOTH_LIBDIR}) - -set(BLUETOOTH_VERSION ${PC_BLUETOOTH_VERSION}) - -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(Bluetooth - REQUIRED_VARS BLUETOOTH_LIBRARY BLUETOOTH_INCLUDE_DIR - VERSION_VAR BLUETOOTH_VERSION) - -if(BLUETOOTH_FOUND) - set(BLUETOOTH_INCLUDE_DIRS ${BLUETOOTH_INCLUDE_DIR}) - set(BLUETOOTH_LIBRARIES ${BLUETOOTH_LIBRARY}) - - if(NOT TARGET Bluetooth::Bluetooth) - add_library(Bluetooth::Bluetooth UNKNOWN IMPORTED) - set_target_properties(Bluetooth::Bluetooth PROPERTIES - IMPORTED_LOCATION "${BLUETOOTH_LIBRARY}" - INTERFACE_INCLUDE_DIRECTORIES "${BLUETOOTH_INCLUDE_DIR}") - endif() -endif() - -mark_as_advanced(BLUETOOTH_INCLUDE_DIR BLUETOOTH_LIBRARY) -- cgit v1.2.3