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 | |
---|
1 | IF(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) |
---|
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.