1 SET(TARGET_NAME ${bluetooth_target})
2 SET(DESTINATION_NAME ${bluetooth_dest})
3 SET(TARGET_IMPL_NAME ${bluetooth_impl})
6 PKG_SEARCH_MODULE(bluetooth REQUIRED capi-network-bluetooth)
8 SET(CMAKE_INSTALL_RPATH
10 ${CMAKE_INSTALL_PREFIX}/${DESTINATION_LIB_PREFIX}/${DESTINATION_NAME}
14 JSBluetoothManager.cpp
15 JSBluetoothAdapter.cpp
19 JSBluetoothClassDeviceMajor.cpp
20 JSBluetoothClassDeviceMinor.cpp
21 JSBluetoothClassDeviceService.cpp
22 JSBluetoothServiceHandler.cpp
23 JSBluetoothHealthApplication.cpp
24 JSBluetoothHealthChannel.cpp
25 JSBluetoothProfileHandler.cpp
26 JSBluetoothHealthProfileHandler.cpp
31 BluetoothClassDeviceMajor.cpp
32 BluetoothClassDeviceMinor.cpp
33 BluetoothClassDeviceService.cpp
34 BluetoothServiceHandler.cpp
35 BluetoothCallbackUtil.cpp
37 BluetoothHealthApplication.cpp
38 BluetoothHealthChannel.cpp
39 BluetoothHealthProfileHandlerCallback.cpp
40 BluetoothHealthProfileHandler.cpp
45 ${bluetooth_INCLUDE_DIRS}
46 ${system-info_INCLUDE_DIRS}
49 ADD_LIBRARY(${TARGET_IMPL_NAME} SHARED ${SRCS_IMPL})
51 TARGET_LINK_LIBRARIES(${TARGET_IMPL_NAME}
53 ${bluetooth_LIBRARIES}
54 ${system-info_LIBRARIES}
59 plugin_initializer.cpp
62 ADD_LIBRARY(${TARGET_NAME} SHARED ${SRCS})
64 TARGET_LINK_LIBRARIES(${TARGET_NAME}
68 INSTALL(TARGETS ${TARGET_NAME} ${TARGET_IMPL_NAME} LIBRARY DESTINATION ${DESTINATION_LIB_PREFIX}/${DESTINATION_NAME})
69 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/config.xml DESTINATION ${DESTINATION_LIB_PREFIX}/${DESTINATION_NAME})
70 ENDIF(ENABLE_OPTIONAL_BT)
72 DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ DESTINATION ${DESTINATION_HEADER_PREFIX}/bluetooth
73 FILES_MATCHING PATTERN "*.h" PATTERN "CMakeFiles" EXCLUDE