Last change
on this file since 9812 was
9812,
checked in by georgr, 10 years ago
|
Committing a few local changes, this won't work very well on non-georg boxes. @smerkli: Fix this
|
-
Property svn:executable set to
*
|
File size:
1.1 KB
|
Rev | Line | |
---|
[9780] | 1 | IF(LINUX) |
---|
| 2 | MESSAGE(STATUS 'sewpertest') |
---|
[9812] | 3 | FIND_PATH(BLUETOOTH_INCLUDE_DIR bluetooth.h /usr/include/bluetooth/ /usr/local/include/bluetooth /home/georgr/libbluetooth-dev/libbluetooth-dev/usr/include/bluetooth) |
---|
| 4 | 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) |
---|
[9780] | 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) |
---|
| 10 | ENDIF(LINUX) |
---|
| 11 | |
---|
| 12 | IF(APPLE) |
---|
| 13 | SET(BLUETOOTH_LIBRARY "-framework IOBluetooth") |
---|
| 14 | SET(BLUETOOTH_FOUND TRUE) |
---|
| 15 | ENDIF(APPLE) |
---|
| 16 | |
---|
| 17 | IF (BLUETOOTH_FOUND) |
---|
| 18 | IF (NOT Bluetooth_FIND_QUIETLY) |
---|
| 19 | MESSAGE(STATUS "Found Bluetooth: ${BLUETOOTH_LIBRARY}") |
---|
| 20 | ENDIF (NOT Bluetooth_FIND_QUIETLY) |
---|
| 21 | ELSE (BLUETOOTH_FOUND) |
---|
| 22 | IF (Bluetooth_FIND_REQUIRED) |
---|
| 23 | MESSAGE(FATAL_ERROR "Could not find Bluetooth. Please install Bluetooth package") |
---|
| 24 | ENDIF (Bluetooth_FIND_REQUIRED) |
---|
| 25 | ENDIF (BLUETOOTH_FOUND) |
---|
Note: See
TracBrowser
for help on using the repository browser.