diff options
author | gregory guy <g-gregory@gmx.fr> | 2019-05-03 15:02:28 +0200 |
---|---|---|
committer | gregory guy <g-gregory@gmx.fr> | 2019-05-03 15:02:28 +0200 |
commit | 4c357c392d3aa896844e120d4c0c40e188f557c5 (patch) | |
tree | d2e17b2289c94f4ce4e6b89be75f220026a09af8 /ConfigureChecks.cmake | |
parent | 2efc9f9cf4aca3f634053f2d6865b471a5ef1835 (diff) | |
download | kshowmail-4c357c392d3aa896844e120d4c0c40e188f557c5.tar.gz kshowmail-4c357c392d3aa896844e120d4c0c40e188f557c5.zip |
conversion to the cmake building system
Signed-off-by: gregory guy <g-gregory@gmx.fr>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 35 |
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) ) |