summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorgregory guy <[email protected]>2019-05-03 15:02:28 +0200
committerSlávek Banko <[email protected]>2019-05-05 02:39:35 +0200
commit665005a338622ebe06c1e54133d4e8eb5dbe2d7d (patch)
tree52edf1fa6b5dfef975d40e89d591b937f3c77617 /ConfigureChecks.cmake
parentc637448c2d3ce2e2de491635622f0a07a313723a (diff)
downloadkshowmail-665005a338622ebe06c1e54133d4e8eb5dbe2d7d.tar.gz
kshowmail-665005a338622ebe06c1e54133d4e8eb5dbe2d7d.zip
conversion to the cmake building system
Signed-off-by: gregory guy <[email protected]> (cherry picked from commit 4c357c392d3aa896844e120d4c0c40e188f557c5)
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake35
1 files changed, 35 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
new file mode 100644
index 0000000..d67d3c9
--- /dev/null
+++ b/ConfigureChecks.cmake
@@ -0,0 +1,35 @@
+###########################################
+# #
+# Improvements and feedback are welcome #
+# #
+# This file is released under GPL >= 3 #
+# #
+###########################################
+
+# required stuff
+find_package( TQt )
+find_package( TDE )
+
+tde_setup_architecture_flags( )
+
+include(TestBigEndian)
+test_big_endian(WORDS_BIGENDIAN)
+
+tde_setup_largefiles( )
+
+
+##### check for gcc visibility support
+
+if( WITH_GCC_VISIBILITY )
+ tde_setup_gcc_visibility( )
+endif( WITH_GCC_VISIBILITY )
+
+
+##### check for mimelib1 support
+
+find_path( MIMELIB1_INCLUDE_DIR NAMES "mimelib/mimepp.h" )
+find_library( MIMELIB1_LIBRARIES NAMES mimelib )
+
+if( (NOT MIMELIB1_INCLUDE_DIR) OR (NOT MIMELIB1_LIBRARIES) )
+ tde_message_fatal( "mimelib1 is required but either the headers or the library have not been found on your system" )
+endif( (NOT MIMELIB1_INCLUDE_DIR) OR (NOT MIMELIB1_LIBRARIES) )