From 4c357c392d3aa896844e120d4c0c40e188f557c5 Mon Sep 17 00:00:00 2001 From: gregory guy Date: Fri, 3 May 2019 15:02:28 +0200 Subject: conversion to the cmake building system Signed-off-by: gregory guy --- ConfigureChecks.cmake | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 ConfigureChecks.cmake (limited to 'ConfigureChecks.cmake') 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) ) -- cgit v1.2.1