diff options
author | gregory guy <gregory-tde@laposte.net> | 2021-10-07 15:17:57 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-12-08 16:28:04 +0100 |
commit | bf076238d30b3e8523b5362f5698ea2e3660c5bf (patch) | |
tree | f9651b26933ef3054a482f07ae428fd5c0aec431 /ConfigureChecks.cmake | |
parent | 8081a13a660196b987f3e99f899f502f9bc947c7 (diff) | |
download | tqscintilla-bf076238d30b3e8523b5362f5698ea2e3660c5bf.tar.gz tqscintilla-bf076238d30b3e8523b5362f5698ea2e3660c5bf.zip |
Conversion to the cmake building system.
Signed-off-by: gregory guy <gregory-tde@laposte.net>
(cherry picked from commit a69b55c674b0528c00598bea54b7a661f4e49f27)
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake new file mode 100644 index 0000000..5ee5651 --- /dev/null +++ b/ConfigureChecks.cmake @@ -0,0 +1,72 @@ +########################################### +# # +# Improvements and feedback are welcome # +# # +# This file is released under GPL >= 3 # +# # +########################################### + +# required stuff +find_package( TQt ) + +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 ) + + +##### Look for tqt3 plugins location + +execute_process( + COMMAND ${PKG_CONFIG_EXECUTABLE} tqt-mt --variable=pluginsdir + OUTPUT_VARIABLE _pluginsdir + RESULT_VARIABLE _result + OUTPUT_STRIP_TRAILING_WHITESPACE +) +set( TQT_PLUGINS_DIR ${_pluginsdir} ) +message( STATUS "TQT plugins directory: ${TQT_PLUGINS_DIR}" ) + + +##### Look for tqt3 translations location + +execute_process( + COMMAND ${PKG_CONFIG_EXECUTABLE} tqt-mt --variable=translationsdir + OUTPUT_VARIABLE _translationsdir + RESULT_VARIABLE _result + OUTPUT_STRIP_TRAILING_WHITESPACE +) +set( TQT_TRANSLATIONS_DIR ${_translationsdir} ) +message( STATUS "TQT translation directory: ${TQT_TRANSLATIONS_DIR}" ) + + +##### Look for tqt3 includes location + +execute_process( + COMMAND ${PKG_CONFIG_EXECUTABLE} tqt-mt --variable=includedir + OUTPUT_VARIABLE _includedir + RESULT_VARIABLE _result + OUTPUT_STRIP_TRAILING_WHITESPACE +) +set( TQT_INCLUDES_DIR ${_includedir} ) +message( STATUS "TQT include directory: ${TQT_INCLUDES_DIR}" ) + + +##### Look for tqt3 libraries location + +execute_process( + COMMAND ${PKG_CONFIG_EXECUTABLE} tqt-mt --variable=libdir + OUTPUT_VARIABLE _libdir + RESULT_VARIABLE _result + OUTPUT_STRIP_TRAILING_WHITESPACE +) +set( TQT_LIBDIR ${_libdir} ) +message( STATUS "TQT libraries directory: ${TQT_LIBDIR}" ) |