diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3112c4b71..12bf1c4e8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -216,10 +216,19 @@ if (BTSUPPORT AND "${Qt5Core_VERSION}" VERSION_LESS 5.4.0) list(REMOVE_ITEM QT_LIBRARIES Qt5::Bluetooth) endif() +#I can't test MacOS, and Windows Qt doesn't support BLE at all afaik +if (BTSUPPORT AND CMAKE_SYSTEM_NAME STREQUAL "Linux") + set(BLESUPPORT ON) +endif() + if(BTSUPPORT) add_definitions(-DBT_SUPPORT) endif() +if(BLESUPPORT) + add_definitions(-DBLE_SUPPORT) +endif() + #set up the subsurface_link_libraries variable set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} ${LIBDIVECOMPUTER_LIBRARIES} ${LIBGIT2_LIBRARIES} ${LIBUSB_LIBRARIES}) qt5_add_resources(SUBSURFACE_RESOURCES subsurface.qrc) |