diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a717527..47215ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,6 +36,7 @@ option( WITH_VORBIS "Enable Ogg/Vorbis support" ON ) option( WITH_MAD "Enable MAD mp3 decoder support" ON ) option( WITH_ESOUND "Enable ESOUND support" ${WITH_ALL_OPTIONS} ) option( WITH_JACK "Enable JACK support" ${WITH_ALL_OPTIONS} ) +option( WITH_SNDIO "Enable SNDIO support" OFF ) option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} ) @@ -188,6 +189,20 @@ if( WITH_JACK ) endif( WITH_JACK ) +##### check for SNDIO ########################### + +set( HAVE_LIBSNDIO 0 ) +if( WITH_SNDIO ) + check_include_file( "sndio.h" HAVE_SNDIO_H ) + if( HAVE_SNDIO_H ) + set( HAVE_LIBSNDIO 1 ) + set( LIBSNDIO_LIBRARIES "sndio" ) + else( HAVE_SNDIO_H ) + tde_message_fatal( "SNDIO support is requested, but `sndio.h` was not found" ) + endif( HAVE_SNDIO_H ) +endif( WITH_SNDIO ) + + ##### check for glib/gthread modules ############ pkg_search_module( GLIB2 glib-2.0 ) |