diff options
author | gregory guy <g-gregory@gmx.fr> | 2019-03-14 14:32:57 +0100 |
---|---|---|
committer | gregory guy <g-gregory@gmx.fr> | 2019-03-20 13:49:44 +0100 |
commit | 5055b406cde3a6f5495df6d3f7d1f70e8d262968 (patch) | |
tree | fdc6723ae29f695bbb94278b1bd66e6831f85906 /ConfigureChecks.cmake | |
parent | 0638ecc6ca0eeec3135b42b839df3ba698891090 (diff) | |
download | libkexiv2-5055b406cde3a6f5495df6d3f7d1f70e8d262968.tar.gz libkexiv2-5055b406cde3a6f5495df6d3f7d1f70e8d262968.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 | 41 |
1 files changed, 41 insertions, 0 deletions
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 <kdemacros.h> 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 ) |