Warning, /multimedia/kwave/cmake/KwaveALSASupport.cmake is written in an unsupported language. File is not indexed.

0001 #############################################################################
0002 ##    Kwave                - cmake/KwaveALSASupport.cmake
0003 ##                           -------------------
0004 ##    begin                : Sat Jun 02 2007
0005 ##    copyright            : (C) 2007 by Thomas Eschenbacher
0006 ##    email                : Thomas.Eschenbacher@gmx.de
0007 #############################################################################
0008 #
0009 #############################################################################
0010 #                                                                           #
0011 # Redistribution and use in source and binary forms, with or without        #
0012 # modification, are permitted provided that the following conditions        #
0013 # are met:                                                                  #
0014 #                                                                           #
0015 # 1. Redistributions of source code must retain the above copyright         #
0016 #    notice, this list of conditions and the following disclaimer.          #
0017 # 2. Redistributions in binary form must reproduce the above copyright      #
0018 #    notice, this list of conditions and the following disclaimer in the    #
0019 #    documentation and/or other materials provided with the distribution.   #
0020 #                                                                           #
0021 # For details see the accompanying cmake/COPYING-CMAKE-SCRIPTS file.        #
0022 #                                                                           #
0023 #############################################################################
0024 
0025 OPTION(WITH_ALSA "enable playback/recording via ALSA [default=on]" ON)
0026 
0027 IF (WITH_ALSA)
0028 
0029     INCLUDE(FindALSA)
0030     FIND_PATH(HAVE_ASOUNDLIB_H alsa/asoundlib.h)
0031 
0032     IF (HAVE_ASOUNDLIB_H)
0033         SET(HAVE_ALSA_SUPPORT  ON CACHE BOOL "enable ALSA support")
0034     ELSE (HAVE_ASOUNDLIB_H)
0035         MESSAGE(FATAL_ERROR "Your system lacks ALSA support")
0036     ENDIF (HAVE_ASOUNDLIB_H)
0037 
0038 ENDIF (WITH_ALSA)
0039 
0040 #############################################################################
0041 #############################################################################