Use bluez finder
This commit is contained in:
@@ -27,9 +27,8 @@ include(UseBackportedModules)
|
|||||||
add_definitions(-DWIIUSE_COMPILE_LIB)
|
add_definitions(-DWIIUSE_COMPILE_LIB)
|
||||||
|
|
||||||
if(NOT WIN32 AND NOT APPLE)
|
if(NOT WIN32 AND NOT APPLE)
|
||||||
find_path(BLUEZ_INCLUDE_DIR
|
find_package(Bluez REQUIRED)
|
||||||
bluetooth/bluetooth.h)
|
include_directories("${BLUEZ_INCLUDE_DIRS}")
|
||||||
include_directories("${BLUEZ_INCLUDE_DIR}")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ add_library(wiiuse SHARED ${SOURCES} ${API})
|
|||||||
if(WIN32)
|
if(WIN32)
|
||||||
target_link_libraries(wiiuse Ws2_32.lib hid.lib setupapi.lib)
|
target_link_libraries(wiiuse Ws2_32.lib hid.lib setupapi.lib)
|
||||||
else()
|
else()
|
||||||
target_link_libraries(wiiuse m bluetooth)
|
target_link_libraries(wiiuse m ${BLUEZ_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set_property(TARGET
|
set_property(TARGET
|
||||||
|
|||||||
Reference in New Issue
Block a user