summaryrefslogtreecommitdiffstats
path: root/ksplashml/themeengine/simple/CMakeLists.txt
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-23 23:42:11 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-23 23:42:11 +0000
commitb6fc43ccd522dfbc1e215b12adb8208c156bbd31 (patch)
treeb6d14378dd6c3d2f74ea8acf515cef7f4a024cb2 /ksplashml/themeengine/simple/CMakeLists.txt
parentd53bf360906757a36588588fb0286d3b4784ffcb (diff)
downloadtdebase-b6fc43ccd522dfbc1e215b12adb8208c156bbd31.tar.gz
tdebase-b6fc43ccd522dfbc1e215b12adb8208c156bbd31.zip
[kdebase] initial cmake support
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1216551 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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}
+)