Linux: add native support for Bluetooth in client
This commit is contained in:
@@ -35,6 +35,9 @@ foreach(_qt_package IN LISTS QT_PACKAGELIST)
|
||||
endif(NOT ${_qt_package}_FOUND)
|
||||
endforeach()
|
||||
|
||||
find_package(PkgConfig)
|
||||
pkg_search_module(BLUEZ QUIET bluez)
|
||||
|
||||
SET (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||
|
||||
add_subdirectory(deps)
|
||||
@@ -208,6 +211,12 @@ else (Qt5_FOUND)
|
||||
${TARGET_SOURCES})
|
||||
endif (Qt5_FOUND)
|
||||
|
||||
if (BLUEZ_FOUND)
|
||||
message("Bluez library found, building native Bluetooth support :)")
|
||||
add_definitions("-DHAVE_BLUEZ")
|
||||
set(ADDITIONAL_LNK bluetooth ${ADDITIONAL_LNK})
|
||||
endif (BLUEZ_FOUND)
|
||||
|
||||
add_executable(
|
||||
proxmark3
|
||||
${TARGET_SOURCES}
|
||||
|
||||
Reference in New Issue
Block a user