From 6b3181cf92f1fc74da1e8a82f690a1526cb4e900 Mon Sep 17 00:00:00 2001 From: gregory guy Date: Sun, 29 Mar 2020 19:41:28 +0200 Subject: Conversion to the cmake building system. Added several man pages taken from the Debian packaging. Cleanup headers in ui files. Add png icons for mono theme. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: gregory guy cmake: - Use tde_add_check_executable instead of a combination of separate calls to tde_add_executable and add_test. - Simplify the detection of time.h and sys/time.h headers. - Refactor phrasebook files install, kmouth. Signed-off-by: Slávek Banko --- ConfigureChecks.cmake | 115 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 ConfigureChecks.cmake (limited to 'ConfigureChecks.cmake') diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake new file mode 100644 index 0000000..c999afa --- /dev/null +++ b/ConfigureChecks.cmake @@ -0,0 +1,115 @@ +########################################### +# # +# 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 X11 + +find_package( X11 ) + + +##### check for aRts + +if( WITH_ARTS ) + pkg_search_module( ARTS arts ) + find_library( ARTSKDE artskde ) + + if( ARTS_FOUND AND ARTSKDE ) + set( ARTS_LIBRARIES artskde-shared artsflow_idl soundserver_idl ) + set( ARTS_PLAYER_LIBRARIES "${ARTS_LIBRARIES}" kmedia2_idl ) + else() + tde_message_fatal( "aRts support has been requested but was not found on your system." ) + endif() + + if( BUILD_KSAYIT ) + find_path( ARTS_INCLUDE_DIRS "arts/artsflow.h" ) + + if( ARTS_INCLUDE_DIRS ) + set( KAYSAYIT_ARTS_INCLUDE "${ARTS_INCLUDE_DIRS}" ) + set( KAYSAYIT_ARTS_LIBRARIES "${ARTS_LIBRARIES}" artsflow ) + else() + tde_message_fatal( "aRts headers are required for ksayit build but were not found on your system." ) + endif() + endif() + + if( BUILD_KSAYIT_FREEVERB ) + find_path( ARTS_MODULES_DIR "arts/artsmodules.h" ) + + if( ARTS_MODULES_DIR ) + set( ARTS_FREEVERB_PLUGIN_LIBRARIES "${ARTS_LIBRARIES}" artsflow artsmoduleseffects artsmodules ) + else() + tde_message_fatal( freeverb support has been requested, but the header from tdemultimedia was not found ) + endif() + endif() +endif( WITH_ARTS ) + + +##### check for akode + +if( WITH_AKODE ) + pkg_search_module( AKODE akode ) + + if( NOT AKODE_FOUND ) + tde_message_fatal( "akode support has been requested but was not found on your system" ) + endif() +endif( WITH_AKODE ) + + +##### check for alsa + +if( WITH_ALSA ) + pkg_search_module( ALSA alsa ) + + if( ALSA_FOUND ) + check_include_file( "sys/time.h" HAVE_SYS_TIME_H ) + check_include_files( "sys/time.h;time.h" TIME_WITH_SYS_TIME ) + else() + tde_message_fatal( "alsa support has been requested but was not found on your system." ) + endif() +endif( WITH_ALSA ) + + +##### check for gstreamer + +if( WITH_GSTREAMER ) + pkg_search_module( GSTREAMER gstreamer-1.0>=1.0.0 gstreamer-0.10>=0.10.0 ) + pkg_search_module( GLIB2 glib-2.0 ) + + if( NOT GSTREAMER_FOUND ) + tde_message_fatal( "Gstreamer support has been requested but gstreamer was not found on your system." ) + endif() + + message( STATUS "gstreamer version: ${GSTREAMER_VERSION}" ) +endif( WITH_GSTREAMER ) + + +##### look for header + +find_path( KTTS_KSPEECH_DIR NAMES kspeech.h +HINTS + ${TQT_INCLUDE_DIRS} + ${TDE_INCLUDE_DIR} + ${TDE_INCLUDE_DIR}/tde +) -- cgit v1.2.1