SET(TARGET_NAME ${bluetooth_target}) SET(DESTINATION_NAME ${bluetooth_dest}) SET(TARGET_IMPL_NAME ${bluetooth_impl}) IF(ENABLE_OPTIONAL_BT) PKG_SEARCH_MODULE(bluetooth REQUIRED capi-network-bluetooth) PKG_SEARCH_MODULE(system-info REQUIRED capi-system-info) SET(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_RPATH} ${CMAKE_INSTALL_PREFIX}/${DESTINATION_LIB_PREFIX}/${DESTINATION_NAME} ) SET(SRCS_IMPL JSBluetoothManager.cpp JSBluetoothAdapter.cpp JSBluetoothDevice.cpp JSBluetoothSocket.cpp JSBluetoothClass.cpp JSBluetoothClassDeviceMajor.cpp JSBluetoothClassDeviceMinor.cpp JSBluetoothClassDeviceService.cpp JSBluetoothServiceHandler.cpp BluetoothAdapter.cpp BluetoothDevice.cpp BluetoothSocket.cpp BluetoothClass.cpp BluetoothClassDeviceMajor.cpp BluetoothClassDeviceMinor.cpp BluetoothClassDeviceService.cpp BluetoothServiceHandler.cpp BluetoothCallbackUtil.cpp ) # BluetoothManager.cpp INCLUDE_DIRECTORIES( ${INCLUDE_COMMON} ${bluetooth_INCLUDE_DIRS} ${system-info_INCLUDE_DIRS} ) ADD_LIBRARY(${TARGET_IMPL_NAME} SHARED ${SRCS_IMPL}) TARGET_LINK_LIBRARIES(${TARGET_IMPL_NAME} ${LIBS_COMMON} ${bluetooth_LIBRARIES} ${system-info_LIBRARIES} ) SET(SRCS plugin_config.cpp plugin_initializer.cpp ) ADD_LIBRARY(${TARGET_NAME} SHARED ${SRCS}) TARGET_LINK_LIBRARIES(${TARGET_NAME} ${TARGET_IMPL_NAME} ) INSTALL(TARGETS ${TARGET_NAME} ${TARGET_IMPL_NAME} LIBRARY DESTINATION ${DESTINATION_LIB_PREFIX}/${DESTINATION_NAME}) INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/config.xml DESTINATION ${DESTINATION_LIB_PREFIX}/${DESTINATION_NAME}) ENDIF(ENABLE_OPTIONAL_BT) INSTALL( DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ DESTINATION ${DESTINATION_HEADER_PREFIX}/bluetooth FILES_MATCHING PATTERN "*.h" PATTERN "CMakeFiles" EXCLUDE )