SET(SRCS
bt-common.c
bt-adapter.c
-bt-adapter-le.c
bt-device.c
bt-hid.c
bt-network.c
bt-oob.c
bt-hdp.c
bt-avrcp.c
+bt-gatt.c
bt-telephony.c
bt-opp-client.c
bt-obex-server.c
bt-rfcomm-server.c
bt-request-sender.c
bt-event-handler.c
-bt-scmst.c
-bt-gatt-service.c
-bt-pbap.c
-bt-gatt-client.c)
+)
SET(HEADERS
bluetooth-api.h
bluetooth-hid-api.h
bluetooth-audio-api.h
bluetooth-telephony-api.h
-bluetooth-media-control.h
-bluetooth-scmst-api.h)
+bluetooth-media-control.h)
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
SET(EXEC_PREFIX "\${prefix}")
INCLUDE(FindPkgConfig)
-SET(PKG_MODULES
- dlog
- dbus-glib-1
- gobject-2.0
- gmodule-2.0
- vconf
- libxml-2.0
- security-server
- glib-2.0
- gio-2.0
- gio-unix-2.0
-)
-
-INCLUDE(FindPkgConfig)
-pkg_check_modules(packages REQUIRED ${PKG_MODULES})
+IF(LIBNOTIFY_SUPPORT OR LIBNOTIFICATION_SUPPORT)
+pkg_check_modules(packages REQUIRED dlog dbus-glib-1 gobject-2.0 gmodule-2.0 vconf
+libxml-2.0)
+ELSE(LIBNOTIFY_SUPPORT OR LIBNOTIFICATION_SUPPORT)
+pkg_check_modules(packages REQUIRED dlog dbus-glib-1 gobject-2.0 gmodule-2.0 vconf
+ libxml-2.0 syspopup-caller)
+ENDIF(LIBNOTIFY_SUPPORT OR LIBNOTIFICATION_SUPPORT)
FOREACH(flag ${packages_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
SET_TARGET_PROPERTIES(bluetooth-api PROPERTIES VERSION ${VERSION})
TARGET_LINK_LIBRARIES(bluetooth-api ${packages_LDFLAGS})
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/bluetooth-api.pc.in ${CMAKE_CURRENT_BINARY_DIR}/bluetooth-api.pc @ONLY)
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/bluetooth-api.pc DESTINATION lib/pkgconfig)
-INSTALL(TARGETS bluetooth-api DESTINATION lib COMPONENT RuntimeLibraries)
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/bluetooth-api.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
+INSTALL(TARGETS bluetooth-api DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries)
FOREACH(hfile ${HEADERS})
INSTALL(FILES ${CMAKE_SOURCE_DIR}/include/${hfile} DESTINATION include/bt-service)