3 check_library_exists(GL glXChooseVisual "" HAVE_GLXCHOOSEVISUAL)
5 configure_file (config-screensaver.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-screensaver.h )
7 add_definitions (-DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS)
9 ########### next target ###############
11 set(kcm_screensaver_PART_SRCS
19 set(kscreensaver_xml ${KDEBASE_WORKSPACE_SOURCE_DIR}/krunner/dbus/org.kde.screensaver.xml)
20 QT4_ADD_DBUS_INTERFACE( kcm_screensaver_PART_SRCS ${kscreensaver_xml} kscreensaver_interface )
24 kde4_add_ui_files(kcm_screensaver_PART_SRCS advanceddialogimpl.ui )
26 kde4_add_plugin(kcm_screensaver ${kcm_screensaver_PART_SRCS})
29 target_link_libraries(kcm_screensaver ${KDE4_KDE3SUPPORT_LIBS} ${X11_LIBRARIES})
31 find_library(DL_LIBRARY dl)
33 target_link_libraries(kcm_screensaver ${DL_LIBRARY})
36 if(HAVE_GLXCHOOSEVISUAL)
37 target_link_libraries(kcm_screensaver ${OPENGL_gl_LIBRARY})
38 endif(HAVE_GLXCHOOSEVISUAL)
41 install(TARGETS kcm_screensaver DESTINATION ${PLUGIN_INSTALL_DIR} )
44 ########### install files ###############
46 install( FILES screensaver.desktop DESTINATION ${SERVICES_INSTALL_DIR} )