summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-03-26 00:43:38 +0100
committerSlávek Banko <slavek.banko@axis.cz>2013-03-26 00:44:41 +0100
commitc9a29849cb166e6711c7704dafd868159fd6cd58 (patch)
tree69525be30481d48d0309d84f86047a02522b485a /ConfigureChecks.cmake
parentc8000010a85020b9ade17ee1d98a46f0ed7f4bd0 (diff)
downloadtdepim-c9a29849cb166e6711c7704dafd868159fd6cd58.tar.gz
tdepim-c9a29849cb166e6711c7704dafd868159fd6cd58.zip
Add CMake option to build karm with xscreensaver support
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 7c2098d02..aaa2eb93c 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -153,6 +153,26 @@ if( BUILD_LIBTDENETWORK OR BUILD_CERTMANAGER OR BUILD_KMAIL OR BUILD_KADDRESSBOO
endif( )
endif( )
+
+if( BUILD_KARM AND WITH_XSCREENSAVER )
+ check_library_exists( Xss XScreenSaverQueryInfo "" HAVE_XSSLIB )
+ if( HAVE_XSSLIB )
+ pkg_search_module( XSS xscrnsaver )
+ else( )
+ check_library_exists( Xext XScreenSaverQueryInfo "" HAVE_XSSLIB )
+ if( HAVE_XSSLIB )
+ pkg_search_module( XSS xext )
+ endif( )
+ endif( )
+ check_include_file( X11/extensions/scrnsaver.h HAVE_XSCREENSAVER_H )
+ if( HAVE_XSSLIB AND HAVE_XSCREENSAVER_H )
+ set( HAVE_LIBXSS 1 )
+ else( )
+ tde_message_fatal( "xscreensaver is requested, but was not found on your system" )
+ endif( )
+endif( )
+
+
# required stuff
find_package( TQt )
find_package( TDE )