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)
7 PKG_SEARCH_MODULE(system-info REQUIRED capi-system-info)
9 SET(CMAKE_INSTALL_RPATH
10 ${CMAKE_INSTALL_RPATH}
11 ${CMAKE_INSTALL_PREFIX}/${DESTINATION_LIB_PREFIX}/${DESTINATION_NAME}
15 JSBluetoothManager.cpp
16 JSBluetoothAdapter.cpp
20 JSBluetoothClassDeviceMajor.cpp
21 JSBluetoothClassDeviceMinor.cpp
22 JSBluetoothClassDeviceService.cpp
23 JSBluetoothServiceHandler.cpp
24 JSBluetoothHealthApplication.cpp
25 JSBluetoothHealthChannel.cpp
26 JSBluetoothProfileHandler.cpp
27 JSBluetoothHealthProfileHandler.cpp
32 BluetoothClassDeviceMajor.cpp
33 BluetoothClassDeviceMinor.cpp
34 BluetoothClassDeviceService.cpp
35 BluetoothServiceHandler.cpp
36 BluetoothCallbackUtil.cpp
38 BluetoothHealthApplication.cpp
39 BluetoothHealthChannel.cpp
40 BluetoothHealthProfileHandlerCallback.cpp
41 BluetoothHealthProfileHandler.cpp
46 ${bluetooth_INCLUDE_DIRS}
47 ${system-info_INCLUDE_DIRS}
50 ADD_LIBRARY(${TARGET_IMPL_NAME} SHARED ${SRCS_IMPL})
52 TARGET_LINK_LIBRARIES(${TARGET_IMPL_NAME}
54 ${bluetooth_LIBRARIES}
55 ${system-info_LIBRARIES}
60 plugin_initializer.cpp
63 ADD_LIBRARY(${TARGET_NAME} SHARED ${SRCS})
65 TARGET_LINK_LIBRARIES(${TARGET_NAME}
69 INSTALL(TARGETS ${TARGET_NAME} ${TARGET_IMPL_NAME} LIBRARY DESTINATION ${DESTINATION_LIB_PREFIX}/${DESTINATION_NAME})
70 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/config.xml DESTINATION ${DESTINATION_LIB_PREFIX}/${DESTINATION_NAME})
71 ENDIF(ENABLE_OPTIONAL_BT)
73 DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ DESTINATION ${DESTINATION_HEADER_PREFIX}/bluetooth
74 FILES_MATCHING PATTERN "*.h" PATTERN "CMakeFiles" EXCLUDE