1# - Finds Bluetooth library on BSD 2# This module defines 3# BSD_BLUE_INCLUDE_DIR, where to find bluetooth.h 4# BSD_BLUE_LIBRARIES, the libraries needed to use BSD Bluetooth. 5# BSD_BLUE_FOUND, If false, do not try to use BSD Bluetooth. 6# 7# Copyright (c) 2007, Michal Cihar, <michal@cihar.com> 8# 9# vim: expandtab sw=4 ts=4 sts=4: 10 11if (NOT DEFINED BSD_BLUE_FOUND) 12 if (NOT CROSS_MINGW) 13 find_path(BSD_BLUE_INCLUDE_DIR NAMES bluetooth.h 14 PATHS 15 /usr/include 16 /usr/local/include 17 ) 18 19 find_library(BSD_BLUE_LIBRARIES NAMES bluetooth 20 PATHS 21 /usr/lib 22 /usr/local/lib 23 ) 24 25 if(BSD_BLUE_INCLUDE_DIR AND BSD_BLUE_LIBRARIES) 26 set(BSD_BLUE_FOUND TRUE CACHE INTERNAL "BSD Bluetooth found") 27 message(STATUS "Found BSD Bluetooth: ${BSD_BLUE_INCLUDE_DIR}, ${BSD_BLUE_LIBRARIES}") 28 else(BSD_BLUE_INCLUDE_DIR AND BSD_BLUE_LIBRARIES) 29 set(BSD_BLUE_FOUND FALSE CACHE INTERNAL "BSD Bluetooth found") 30 message(STATUS "BSD Bluetooth not found.") 31 endif(BSD_BLUE_INCLUDE_DIR AND BSD_BLUE_LIBRARIES) 32 33 mark_as_advanced(BSD_BLUE_INCLUDE_DIR BSD_BLUE_LIBRARIES) 34 endif (NOT CROSS_MINGW) 35endif (NOT DEFINED BSD_BLUE_FOUND) 36