add_definitions("-DACSDK_LOG_MODULE=bluetoothImplementationsBlueZ") add_library(BluetoothImplementationsBlueZ BlueZA2DPSink.cpp BlueZA2DPSource.cpp BlueZAVRCPController.cpp BlueZAVRCPTarget.cpp BlueZBluetoothDevice.cpp BlueZBluetoothDeviceManager.cpp BlueZDeviceManager.cpp BlueZHFP.cpp BlueZHID.cpp BlueZHostController.cpp BlueZSPP.cpp DBusConnection.cpp DBusObjectBase.cpp DBusPropertiesProxy.cpp DBusProxy.cpp GVariantMapReader.cpp GVariantTupleReader.cpp MediaContext.cpp MediaEndpoint.cpp MPRISPlayer.cpp PairingAgent.cpp ) target_include_directories(BluetoothImplementationsBlueZ PUBLIC "${BluetoothImplementationsBlueZ_SOURCE_DIR}/include" "${BlueZAlsa_SOURCE_DIR}" "${GIO_INCLUDE_DIRS}" "${GIO_UNIX_INCLUDE_DIRS}") target_link_libraries(BluetoothImplementationsBlueZ "${GIO_LDFLAGS}" "sbc" AVSCommon) if (BLUETOOTH_BLUEZ_PULSEAUDIO_OVERRIDE_ENDPOINTS) target_sources(BluetoothImplementationsBlueZ PRIVATE PulseAudioBluetoothInitializer.cpp) target_include_directories(BluetoothImplementationsBlueZ PUBLIC "${PULSEAUDIO_INCLUDE_DIRS}") target_link_libraries(BluetoothImplementationsBlueZ "${PULSEAUDIO_LDFLAGS}") endif() # install target asdk_install()