Commit 9c50bbd0 authored by Ghislain MARY's avatar Ghislain MARY

Remove no longer needed FindMS2.cmake.in file.

parent e01b36e7
############################################################################
# FindMS2.txt
# Copyright (C) 2014 Belledonne Communications, Grenoble France
#
############################################################################
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
############################################################################
#
# - Find the mediastreamer2 include file and library
#
# MS2_FOUND - system has mediastreamer2
# MS2_INCLUDE_DIRS - the mediastreamer2 include directory
# MS2_LIBRARIES - The libraries needed to use mediastreamer2
# MS2_CPPFLAGS - The compilation flags needed to use mediastreamer2
# MS2_LDFLAGS - The linking flags needed to use mediastreamer2
find_package(ORTP REQUIRED)
if(@ENABLE_GSM@)
find_package(GSM)
endif()
if(@ENABLE_OPUS@)
find_package(Opus)
endif()
if(@ENABLE_SPEEX@)
find_package(Speex)
endif()
if(@ENABLE_SOUND@)
if(UNIX AND NOT APPLE)
if(@ENABLE_ALSA@)
find_package(ALSA)
endif()
if(@ENABLE_ARTSC@)
find_package(Arts)
endif()
endif()
if(@ENABLE_PORTAUDIO@)
find_package(PortAudio)
endif()
if(@ENABLE_PULSEAUDIO@)
find_package(PulseAudio)
endif()
if(@ENABLE_QSA@)
find_package(QSA)
endif()
endif()
if(@ENABLE_VIDEO@)
if(@ENABLE_FFMPEG@)
find_package(FFMpeg)
endif()
if(UNIX)
if(@ENABLE_GLX@)
find_package(GLX)
endif()
if(@ENABLE_X11@)
find_package(X11)
endif()
if(@ENABLE_XV@)
find_package(Xv)
endif()
endif()
if(@ENABLE_VPX@)
find_package(VPX)
endif()
endif()
if(@ENABLE_SRTP@)
find_package(SRTP)
endif()
if(@ENABLE_ZRTP@)
find_package(BZRTP)
endif()
if(@ENABLE_DTLS@ AND SRTP_FOUND)
find_package(PolarSSL)
endif()
set(_MS2_ROOT_PATHS
${WITH_MS2}
${CMAKE_INSTALL_PREFIX}
)
find_path(MS2_INCLUDE_DIRS
NAMES mediastreamer2/mscommon.h
HINTS _MS2_ROOT_PATHS
PATH_SUFFIXES include
)
if(MS2_INCLUDE_DIRS)
set(HAVE_MEDIASTREAMER2_MSCOMMON_H 1)
endif()
find_library(MS2_BASE_LIBRARY
NAMES mediastreamer_base
HINTS ${_MS2_ROOT_PATHS}
PATH_SUFFIXES bin lib
)
find_library(MS2_VOIP_LIBRARY
NAMES mediastreamer_voip
HINTS ${_MS2_ROOT_PATHS}
PATH_SUFFIXES bin lib
)
set(MS2_LIBRARIES ${MS2_BASE_LIBRARY} ${MS2_VOIP_LIBRARY} ${ORTP_LIBRARIES})
list(APPEND MS2_INCLUDE_DIRS ${ORTP_INCLUDE_DIRS})
if(GSM_FOUND)
list(APPEND MS2_INCLUDE_DIRS ${GSM_INCLUDE_DIRS})
list(APPEND MS2_LIBRARIES ${GSM_LIBRARIES})
endif()
if(OPUS_FOUND)
list(APPEND MS2_INCLUDE_DIRS ${OPUS_INCLUDE_DIRS})
list(APPEND MS2_LIBRARIES ${OPUS_LIBRARIES})
endif()
if(SPEEX_FOUND)
list(APPEND MS2_INCLUDE_DIRS ${SPEEX_INCLUDE_DIRS})
list(APPEND MS2_LIBRARIES ${SPEEX_LIBRARIES})
endif()
if(ALSA_FOUND)
list(APPEND MS2_INCLUDE_DIRS ${ALSA_INCLUDE_DIRS})
list(APPEND MS2_LIBRARIES ${ALSA_LIBRARIES})
endif()
if(ARTS_FOUND)
list(APPEND MS2_INCLUDE_DIRS ${ARTS_INCLUDE_DIRS})
list(APPEND MS2_LIBRARIES ${ARTS_LIBRARIES})
endif()
if(PORTAUDIO_FOUND)
list(APPEND MS2_INCLUDE_DIRS ${PORTAUDIO_INCLUDE_DIRS})
list(APPEND MS2_LIBRARIES ${PORTAUDIO_LIBRARIES})
endif()
if(PULSEAUDIO_FOUND)
list(APPEND MS2_INCLUDE_DIRS ${PULSEAUDIO_INCLUDE_DIRS})
list(APPEND MS2_LIBRARIES ${PULSEAUDIO_LIBRARIES})
endif()
if(QSA_FOUND)
list(APPEND MS2_INCLUDE_DIRS ${QSA_INCLUDE_DIRS})
list(APPEND MS2_LIBRARIES ${QSA_LIBRARIES})
endif()
if(FFMPEG_FOUND)
list(APPEND MS2_INCLUDE_DIRS ${FFMPEG_INCLUDE_DIRS})
list(APPEND MS2_LIBRARIES ${FFMPEG_LIBRARIES})
endif()
if(X11_FOUND)
list(APPEND MS2_INCLUDE_DIRS ${X11_INCLUDE_DIRS})
list(APPEND MS2_LIBRARIES ${X11_LIBRARIES})
endif()
if(XV_FOUND)
list(APPEND MS2_INCLUDE_DIRS ${XV_INCLUDE_DIRS})
list(APPEND MS2_LIBRARIES ${XV_LIBRARIES})
endif()
if(GLX_FOUND)
list(APPEND MS2_INCLUDE_DIRS ${GLX_INCLUDE_DIRS})
list(APPEND MS2_LIBRARIES ${GLX_LIBRARIES})
endif()
if(VPX_FOUND)
list(APPEND MS2_INCLUDE_DIRS ${VPX_INCLUDE_DIRS})
list(APPEND MS2_LIBRARIES ${VPX_LIBRARIES})
endif()
if(SRTP_FOUND)
list(APPEND MS2_INCLUDE_DIRS ${SRTP_INCLUDE_DIRS})
list(APPEND MS2_LIBRARIES ${SRTP_LIBRARIES})
endif()
if(BZRTP_FOUND)
list(APPEND MS2_INCLUDE_DIRS ${BZRTP_INCLUDE_DIRS})
list(APPEND MS2_LIBRARIES ${BZRTP_LIBRARIES})
endif()
if(POLARSSL_FOUND)
list(APPEND MS2_INCLUDE_DIRS ${POLARSSL_INCLUDE_DIRS})
list(APPEND MS2_LIBRARIES ${POLARSSL_LIBRARIES})
endif()
if(WIN32)
list(APPEND MS2_LIBRARIES ole32 oleaut32 uuid gdi32 user32 vfw32)
endif(WIN32)
list(REMOVE_DUPLICATES MS2_INCLUDE_DIRS)
list(REMOVE_DUPLICATES MS2_LIBRARIES)
set(MS2_CPPFLAGS "${ORTP_CPPFLAGS}")
set(MS2_LDFLAGS "@APPLE_SPECIFIC_LINK_FLAGS@")
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(MS2
DEFAULT_MSG
MS2_INCLUDE_DIRS MS2_LIBRARIES MS2_BASE_LIBRARY MS2_VOIP_LIBRARY
)
mark_as_advanced(MS2_INCLUDE_DIRS MS2_LIBRARIES MS2_BASE_LIBRARY MS2_VOIP_LIBRARY MS2_CPPFLAGS MS2_LDFLAGS)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment