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

Generate the script to find the ms2 libraries with CMake according to the build options.

parent 10d200e7
......@@ -324,7 +324,8 @@ add_definitions(-DHAVE_CONFIG_H)
add_definitions(${ORTP_CPPFLAGS})
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/FindMS2.cmake
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/FindMS2.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/FindMS2.cmake)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/FindMS2.cmake
DESTINATION share/cmake/Modules
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
)
......
......@@ -28,21 +28,53 @@
# MS2_CPPFLAGS - The compilation flags needed to use mediastreamer2
find_package(ORTP REQUIRED)
find_package(GSM)
find_package(Opus)
find_package(Speex)
find_package(ALSA)
find_package(Arts)
find_package(PortAudio)
find_package(PulseAudio)
find_package(QSA)
find_package(FFMpeg)
find_package(X11)
if(X11_FOUND)
find_package(Xv)
if(@ENABLE_GSM@)
find_package(GSM)
endif()
if(@ENABLE_OPUS@)
find_package(Opus)
endif()
if(@ENABLE_SPEEX@)
find_package(Speex)
endif()
if(@ENABLE_AUDIO@)
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()
find_package(GLX)
find_package(VPX)
set(_MS2ROOT_PATHS
${WITH_MS2}
......
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