Last change
on this file since 11479 was
9876,
checked in by georgr, 11 years ago
|
lag sorta fixed - it disappears after ~40s, but will reappear for unknown reasons
|
-
Property svn:executable set to
*
|
File size:
1.2 KB
|
Rev | Line | |
---|
[9780] | 1 | IF(LINUX) |
---|
[9827] | 2 | #FIND_PATH(BLUETOOTH_INCLUDE_DIR NAMES bluetooth PATHS /usr/include/bluetooth/ /usr/local/include/bluetooth /home/georgr/libbluetooth-dev/libbluetooth-dev/usr/include/bluetooth) |
---|
| 3 | #FIND_LIBRARY(BLUETOOTH_LIBRARY NAMES bluetooth PATHS /usr/lib/ /usr/lib/x86_64-linux-gnu /home/georgr/libbluetooth-dev/libbluetooth-dev/usr/lib/x86_64-linux-gnu) |
---|
[9876] | 4 | FIND_PATH(BLUETOOTH_INCLUDE_DIR bluetooth /usr/include/) |
---|
| 5 | FIND_LIBRARY(BLUETOOTH_LIBRARY NAMES bluetooth PATHS /usr/lib/x86_64-linux-gnu/) |
---|
[9827] | 6 | MESSAGE(STATUS "Bluetooth library test: ${BLUETOOTH_LIBRARY}") |
---|
| 7 | MESSAGE(STATUS "Bluetooth header test: ${BLUETOOTH_INCLUDE_DIR}") |
---|
[9780] | 8 | IF(BLUETOOTH_INCLUDE_DIR AND BLUETOOTH_LIBRARY) |
---|
| 9 | SET(BLUETOOTH_FOUND TRUE) |
---|
| 10 | ENDIF(BLUETOOTH_INCLUDE_DIR AND BLUETOOTH_LIBRARY) |
---|
| 11 | ENDIF(LINUX) |
---|
| 12 | |
---|
| 13 | IF(APPLE) |
---|
| 14 | SET(BLUETOOTH_LIBRARY "-framework IOBluetooth") |
---|
| 15 | SET(BLUETOOTH_FOUND TRUE) |
---|
| 16 | ENDIF(APPLE) |
---|
| 17 | |
---|
| 18 | IF (BLUETOOTH_FOUND) |
---|
| 19 | IF (NOT Bluetooth_FIND_QUIETLY) |
---|
| 20 | MESSAGE(STATUS "Found Bluetooth: ${BLUETOOTH_LIBRARY}") |
---|
| 21 | ENDIF (NOT Bluetooth_FIND_QUIETLY) |
---|
| 22 | ELSE (BLUETOOTH_FOUND) |
---|
| 23 | IF (Bluetooth_FIND_REQUIRED) |
---|
| 24 | MESSAGE(FATAL_ERROR "Could not find Bluetooth. Please install Bluetooth package") |
---|
| 25 | ENDIF (Bluetooth_FIND_REQUIRED) |
---|
| 26 | ENDIF (BLUETOOTH_FOUND) |
---|
Note: See
TracBrowser
for help on using the repository browser.