Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/wiimote/cmake/tools/FindBluetooth.cmake @ 9780

Last change on this file since 9780 was 9780, checked in by georgr, 10 years ago

WiiCpp library successfully (?) added - won't work without libbluetooth-dev

  • Property svn:executable set to *
File size: 1.0 KB
Line 
1IF(LINUX)
2        MESSAGE(STATUS 'sewpertest')
3        FIND_PATH(BLUETOOTH_INCLUDE_DIR bluetooth.h /home/georgr/libbluetooth-dev/libbluetooth-dev/usr/include/bluetooth)
4        FIND_LIBRARY(BLUETOOTH_LIBRARY NAMES bluetooth PATHS /usr/lib/x86_64-linux-gnu /home/georgr/libbluetooth-dev/libbluetooth-dev/usr/lib/x86_64-linux-gnu) 
5        MESSAGE(STATUS "sewpertest 2 ${BLUETOOTH_LIBRARY}")
6        MESSAGE(STATUS "sewpertest 3 ${BLUETOOTH_INCLUDE_DIR}")
7        IF(BLUETOOTH_INCLUDE_DIR AND BLUETOOTH_LIBRARY)
8                SET(BLUETOOTH_FOUND TRUE)
9        ENDIF(BLUETOOTH_INCLUDE_DIR AND BLUETOOTH_LIBRARY)
10ENDIF(LINUX)
11
12IF(APPLE)
13        SET(BLUETOOTH_LIBRARY "-framework IOBluetooth")
14        SET(BLUETOOTH_FOUND TRUE)
15ENDIF(APPLE)
16
17IF (BLUETOOTH_FOUND)
18   IF (NOT Bluetooth_FIND_QUIETLY)
19      MESSAGE(STATUS "Found Bluetooth: ${BLUETOOTH_LIBRARY}")
20   ENDIF (NOT Bluetooth_FIND_QUIETLY)
21ELSE (BLUETOOTH_FOUND)
22   IF (Bluetooth_FIND_REQUIRED)
23      MESSAGE(FATAL_ERROR "Could not find Bluetooth. Please install Bluetooth package")
24   ENDIF (Bluetooth_FIND_REQUIRED)
25ENDIF (BLUETOOTH_FOUND)
Note: See TracBrowser for help on using the repository browser.