From 5055b406cde3a6f5495df6d3f7d1f70e8d262968 Mon Sep 17 00:00:00 2001 From: gregory guy Date: Thu, 14 Mar 2019 14:32:57 +0100 Subject: conversion to the cmake building system Signed-off-by: gregory guy --- ConfigureChecks.cmake | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 ConfigureChecks.cmake (limited to 'ConfigureChecks.cmake') diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake new file mode 100644 index 0000000..7c18e99 --- /dev/null +++ b/ConfigureChecks.cmake @@ -0,0 +1,41 @@ +########################################### +# # +# 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 exiv2 + +pkg_search_module( EXIV2 exiv2 ) +if( NOT EXIV2_FOUND ) + tde_message_fatal( "exiv2 is required, but was not found on your system" ) +endif( NOT EXIV2_FOUND ) + + +##### check for header + +tde_save( CMAKE_REQUIRED_INCLUDES ) +list( APPEND CMAKE_REQUIRED_INCLUDES "${TDE_INCLUDE_DIR}" ) +check_include_file( "kdemacros.h" KDEMACROS_USABLE ) +tde_restore( CMAKE_REQUIRED_INCLUDES ) -- cgit v1.2.3