summaryrefslogtreecommitdiffstats
path: root/kgamma/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-08 15:49:56 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-08 15:49:56 +0000
commit96411d66c8095128af871a82ba2895c61dab3281 (patch)
treec0cf5c800fd5b6e44c7bf9c05a9f197d8db1e525 /kgamma/ConfigureChecks.cmake
parent5c3f3c34c2f56660f935451776e76e552c7af305 (diff)
downloadtdegraphics-96411d66c8095128af871a82ba2895c61dab3281.tar.gz
tdegraphics-96411d66c8095128af871a82ba2895c61dab3281.zip
[kdegraphics] added cmake support for kgamma, kiconedit, and kmrml
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1230898 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kgamma/ConfigureChecks.cmake')
-rw-r--r--kgamma/ConfigureChecks.cmake22
1 files changed, 22 insertions, 0 deletions
diff --git a/kgamma/ConfigureChecks.cmake b/kgamma/ConfigureChecks.cmake
new file mode 100644
index 00000000..14815e43
--- /dev/null
+++ b/kgamma/ConfigureChecks.cmake
@@ -0,0 +1,22 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include( CheckIncludeFileCXX )
+
+pkg_search_module( XXF86VM xxf86vm )
+if( NOT XXF86VM_FOUND )
+ tde_message_fatal( "xxf86vm is required, but was not found on your system" )
+endif( )
+
+tde_save( CMAKE_REQUIRED_INCLUDES )
+set( CMAKE_REQUIRED_INCLUDES ${TQT_INCLUDE_DIRS} )
+check_include_file_cxx( sstream HAVE_SSTREAM )
+tde_restore( CMAKE_REQUIRED_INCLUDES )