2 include_directories(${CMAKE_SOURCE_DIR}/lib ${include_dirs})
4 pkg_check_modules(gio REQUIRED gio-2.0)
6 set(dbussinkplugin_headers dbusplugin.h abstractproperty.h abstractdbusinterface.h dbusinterfacemanager.h basicproperty.h properties.h varianttype.h custompropertyinterface.h environmentproperties.h)
7 set(dbussinkplugin_sources dbusplugin.cpp abstractproperty.cpp abstractdbusinterface.cpp dbusinterfacemanager.cpp basicproperty.cpp properties.cpp varianttype.cpp custompropertyinterface.cpp environmentproperties.cpp)
9 add_library(dbussinkplugin MODULE ${dbussinkplugin_sources})
10 set_target_properties(dbussinkplugin PROPERTIES PREFIX "")
11 target_link_libraries(dbussinkplugin amb -L${CMAKE_CURRENT_BINARY_DIR}/lib ${link_libraries} ${gio_LIBRARIES})
13 install (TARGETS dbussinkplugin LIBRARY DESTINATION lib/automotive-message-broker)
14 install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/amb.conf DESTINATION /etc/dbus-1/system.d )
16 add_subdirectory(amb-qt)