summaryrefslogtreecommitdiff
blob: 3cc2bc65134f5465e9e2332142dfd00aba106ed6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
--- cmake/modules/FindXscreensaver.cmake
+++ cmake/modules/FindXscreensaver.cmake
@@ -113,6 +113,45 @@
 endif(XSCREENSAVER_DIR)
 endif(NOT XSCREENSAVER_DIR)

+if(NOT XSCREENSAVER_DIR)
+FIND_PATH(XSCREENSAVER_DIR lib${LIB_SUFFIX}/misc/xscreensaver/deco
+   ${KDE4_INCLUDE_DIR}
+   /usr/
+   /usr/local/
+   /opt/local/
+   /usr/X11R6/
+   /opt/kde/
+   /opt/kde3/
+   /usr/kde/
+   /usr/local/kde/
+   /usr/local/xscreensaver/
+   /usr/openwin/lib/xscreensaver/
+   /etc/
+)
+if( XSCREENSAVER_DIR)
+   set(XSCREENSAVER_DIR ${XSCREENSAVER_DIR}/lib${LIB_SUFFIX}/misc/xscreensaver/)
+endif(XSCREENSAVER_DIR)
+endif(NOT XSCREENSAVER_DIR)
+
+if(NOT XSCREENSAVER_DIR)
+FIND_PATH(XSCREENSAVER_DIR lib/misc/xscreensaver/deco
+   ${KDE4_INCLUDE_DIR}
+   /usr/
+   /usr/local/
+   /opt/local/
+   /usr/X11R6/
+   /opt/kde/
+   /opt/kde3/
+   /usr/kde/
+   /usr/local/kde/
+   /usr/local/xscreensaver/
+   /usr/openwin/lib/xscreensaver/
+   /etc/
+)
+if( XSCREENSAVER_DIR)
+   set(XSCREENSAVER_DIR ${XSCREENSAVER_DIR}/lib/misc/xscreensaver/)
+endif(XSCREENSAVER_DIR)
+endif(NOT XSCREENSAVER_DIR)


 set(XSCREENSAVER_CONFIG_DIR)