summaryrefslogtreecommitdiffstats
path: root/ksplashml/themeengine/simple/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'ksplashml/themeengine/simple/CMakeLists.txt')
-rw-r--r--ksplashml/themeengine/simple/CMakeLists.txt36
1 files changed, 36 insertions, 0 deletions
diff --git a/ksplashml/themeengine/simple/CMakeLists.txt b/ksplashml/themeengine/simple/CMakeLists.txt
new file mode 100644
index 000000000..6f4c2dcb9
--- /dev/null
+++ b/ksplashml/themeengine/simple/CMakeLists.txt
@@ -0,0 +1,36 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+if( WITH_XINERAMA )
+ check_include_file( "X11/extensions/Xinerama.h" X11_EXTENSIONS_XINERAMA_H )
+ if( X11_EXTENSIONS_XINERAMA_H )
+ check_library_exists( Xinerama XineramaQueryExtension "" HAVE_XINERAMA )
+ endif( X11_EXTENSIONS_XINERAMA_H )
+ if( NOT HAVE_XINERAMA )
+ tde_message_fatal( "xinerama are requested, but not found on your system" )
+ endif( NOT HAVE_XINERAMA )
+ set( XINERAMA_LIBRARY Xinerama )
+endif( WITH_XINERAMA )
+
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### ksplashsimple (executable) ################
+
+tde_add_executable( ksplashsimple
+ SOURCES main.cpp
+ LINK X11 ${XINERAMA_LIBRARY}
+ DESTINATION ${BIN_INSTALL_DIR}
+)