1 INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR} )
3 ############# Find LIBXSS for idle detection and write outcome to config.h ####
5 include (CheckLibraryExists)
6 check_library_exists(Xss XScreenSaverQueryInfo "" HAVE_LIBXSS)
8 # Not having libxss is fatal at the moment.
10 MESSAGE(FATAL_ERROR "Missing libxss library")
11 ELSE (NOT HAVE_LIBXSS)
12 SET (IDLE_DETECTION_LIB "Xss")
13 ENDIF (NOT HAVE_LIBXSS)
15 # Write it down to the config.h
16 CONFIGURE_FILE( ${CMAKE_SOURCE_DIR}/config.h.cmake
17 ${CMAKE_BINARY_DIR}/src/config.h )
19 ############ librsibreak #####################################################
21 ADD_LIBRARY(librsibreak STATIC rsitimer_dpms.cpp)
23 ############ rsibreak ########################################################
44 KDE4_ADD_EXECUTABLE(rsibreak ${rsibreak_sources})
46 ########### linking #####################
48 TARGET_LINK_LIBRARIES(rsibreak kio kdeui librsibreak ${IDLE_DETECTION_LIB})
50 ########### install files ###############
52 INSTALL_TARGETS(/bin rsibreak )
53 INSTALL_FILES( /share/applications/kde FILES rsibreak.desktop )
54 #TODO is this still in KDE4?
55 #INSTALL_FILES( /share/autostart FILES rsibreak.desktop )