Fix crash if key bindings specified in profile cannot be found. Improve
[personal-kdebase.git] / apps / nsplugins / viewer / CMakeLists.txt
blobe791999a8a2dbee93702c0ea15a0738935b8fc5f
1 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_BINARY_DIR}/..)
3 if (GLIB2_FOUND)
4   include_directories(${GLIB2_INCLUDE_DIR})
5 endif (GLIB2_FOUND)
7 ########### next target ###############
9 set(nspluginviewer_SRCS nsplugin.cpp viewer.cpp xtevents.cpp glibevents.cpp
10     pluginhost_xembed.cpp pluginhost_xt.cpp pluginhost.cpp)
12 qt4_add_dbus_adaptor( nspluginviewer_SRCS org.kde.nsplugins.class.xml nsplugin.h NSPluginClass )
13 qt4_add_dbus_adaptor( nspluginviewer_SRCS org.kde.nsplugins.instance.xml nsplugin.h NSPluginInstance )
14 qt4_add_dbus_adaptor( nspluginviewer_SRCS org.kde.nsplugins.viewer.xml nsplugin.h NSPluginViewer )
16 set(nsplugins_callback_xml  ${CMAKE_CURRENT_SOURCE_DIR}/../org.kde.nsplugins.CallBack.xml)
17 QT4_ADD_DBUS_INTERFACE( nspluginviewer_SRCS ${nsplugins_callback_xml} nsplugins_callback_interface )
20 kde4_add_executable(nspluginviewer ${nspluginviewer_SRCS})
22 target_link_libraries(nspluginviewer ${KDE4_KPARTS_LIBS} ${X11_Xt_LIB} ${X11_X11_LIB} ${QT_QTDBUS_LIBRARY} ${CMAKE_DL_LIBS})
23 if (GLIB2_FOUND)
24    target_link_libraries(nspluginviewer ${GLIB2_LIBRARIES})
25 endif (GLIB2_FOUND)
28 install(TARGETS nspluginviewer ${INSTALL_TARGETS_DEFAULT_ARGS})
29 install(FILES org.kde.nsplugins.class.xml org.kde.nsplugins.instance.xml org.kde.nsplugins.viewer.xml DESTINATION ${DBUS_INTERFACES_INSTALL_DIR} )