cmake: Move BlueZ detection to Core

This commit is contained in:
Florent Castelli
2017-02-08 00:29:34 +01:00
parent 277f813b72
commit 428d1624fa
3 changed files with 59 additions and 17 deletions

View File

@ -436,19 +436,6 @@ if (OPENGL_GL)
include_directories(${OPENGL_INCLUDE_DIR})
endif()
if(ENABLE_BLUEZ)
check_lib(BLUEZ bluez bluez QUIET)
if(BLUEZ_FOUND)
add_definitions(-DHAVE_BLUEZ=1)
message(STATUS "bluez found, enabling bluetooth support")
else()
add_definitions(-DHAVE_BLUEZ=0)
message(STATUS "bluez NOT found, disabling bluetooth support")
endif()
else()
message(STATUS "bluez explicitly disabled, disabling bluetooth support")
endif()
if(ENABLE_LLVM)
find_package(LLVM)
if (LLVM_FOUND)