summaryrefslogtreecommitdiffstats
path: root/kviewshell/plugins/djvu/libdjvu/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-06 22:03:48 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-06 22:03:48 +0000
commit0f962a277e58ccb2c6d9ee36ce68966db9b071cc (patch)
treee5341e2fcac3338daf25796bc20ae8c16307673e /kviewshell/plugins/djvu/libdjvu/ConfigureChecks.cmake
parent19158a8de8416c95f7c961e107c475dd786f6449 (diff)
downloadtdegraphics-0f962a277e58ccb2c6d9ee36ce68966db9b071cc.tar.gz
tdegraphics-0f962a277e58ccb2c6d9ee36ce68966db9b071cc.zip
[kdegraphics] cmake support for kamera, kcoloredit, and kviewshell
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1230743 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kviewshell/plugins/djvu/libdjvu/ConfigureChecks.cmake')
-rw-r--r--kviewshell/plugins/djvu/libdjvu/ConfigureChecks.cmake25
1 files changed, 25 insertions, 0 deletions
diff --git a/kviewshell/plugins/djvu/libdjvu/ConfigureChecks.cmake b/kviewshell/plugins/djvu/libdjvu/ConfigureChecks.cmake
new file mode 100644
index 00000000..50f708f1
--- /dev/null
+++ b/kviewshell/plugins/djvu/libdjvu/ConfigureChecks.cmake
@@ -0,0 +1,25 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include( CheckFunctionExists )
+
+check_type_size( wchar_t WCHAR_T )
+
+if( HAVE_WCHAR_T )
+ tde_save( CMAKE_EXTRA_INCLUDE_FILES )
+ set( CMAKE_EXTRA_INCLUDE_FILES wchar.h )
+ check_type_size( mbstate_t MBSTATE_T )
+ tde_restore( CMAKE_EXTRA_INCLUDE_FILES )
+ check_function_exists( iswspace HAVE_ISWSPACE )
+ if( HAVE_MBSTATE_T )
+ check_function_exists( wcrtomb HAVE_WCRTOMB )
+ endif( )
+endif( )