not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / kcontrol / screensaver / CMakeLists.txt
blobe0b44e683f24c13809c2e6fc2bf4a74936917308
2 if(WITH_OpenGL)
3 check_library_exists(GL glXChooseVisual "" HAVE_GLXCHOOSEVISUAL)
4 endif(WITH_OpenGL)
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 
12    scrnsave.cpp 
13    testwin.cpp 
14    saverlist.cpp 
15    saverconfig.cpp 
16    advanceddialog.cpp 
17    kswidget.cpp )
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)
32 if (DL_LIBRARY)
33   target_link_libraries(kcm_screensaver ${DL_LIBRARY})
34 endif(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} )