| 1 |
@PACKAGE_INIT@ |
| 2 |
|
| 3 |
include(CMakeFindDependencyMacro) |
| 4 |
|
| 5 |
# Add our Find modules to the search path for dependencies below |
| 6 |
set(_pj_saved_module_path "${CMAKE_MODULE_PATH}") |
| 7 |
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}") |
| 8 |
|
| 9 |
find_dependency(Threads) |
| 10 |
|
| 11 |
# SSL/TLS backend (mutually exclusive) |
| 12 |
set(_pj_ssl_backend "@PJLIB_WITH_SSL@") |
| 13 |
if(_pj_ssl_backend STREQUAL "openssl") |
| 14 |
find_package(OpenSSL COMPONENTS Crypto SSL MODULE QUIET) |
| 15 |
if(NOT OpenSSL_FOUND AND NOT OPENSSL_FOUND) |
| 16 |
find_dependency(OpenSSL COMPONENTS Crypto SSL) |
| 17 |
endif() |
| 18 |
elseif(_pj_ssl_backend STREQUAL "gnutls") |
| 19 |
find_dependency(GnuTLS) |
| 20 |
elseif(_pj_ssl_backend STREQUAL "mbedtls") |
| 21 |
find_dependency(MbedTLS CONFIG) |
| 22 |
endif() |
| 23 |
unset(_pj_ssl_backend) |
| 24 |
|
| 25 |
# pjlib platform deps |
| 26 |
if(@PJLIB_WITH_LIBUUID@) |
| 27 |
find_dependency(UUID) |
| 28 |
endif() |
| 29 |
|
| 30 |
# pjnath deps |
| 31 |
if(@PJNATH_WITH_UPNP@) |
| 32 |
find_dependency(UPNP) |
| 33 |
endif() |
| 34 |
|
| 35 |
# Audio device backends |
| 36 |
if(@PJMEDIA_WITH_AUDIODEV_COREAUDIO@) |
| 37 |
find_dependency(CoreAudio) |
| 38 |
endif() |
| 39 |
if(@PJMEDIA_WITH_AUDIODEV_ALSA@) |
| 40 |
find_dependency(ALSA) |
| 41 |
endif() |
| 42 |
|
| 43 |
# Video device backends |
| 44 |
if(@PJMEDIA_WITH_VIDEODEV_OPENGL@) |
| 45 |
find_dependency(OpenGL) |
| 46 |
endif() |
| 47 |
if(@PJMEDIA_WITH_VIDEODEV_SDL@) |
| 48 |
find_dependency(SDL2) |
| 49 |
endif() |
| 50 |
if(@PJMEDIA_WITH_VIDEODEV_V4L2@) |
| 51 |
find_dependency(V4L2) |
| 52 |
endif() |
| 53 |
|
| 54 |
# AEC backends |
| 55 |
if(@PJMEDIA_WITH_SPEEX_AEC@) |
| 56 |
find_dependency(SpeexDSP) |
| 57 |
endif() |
| 58 |
|
| 59 |
# Resampling backend |
| 60 |
set(_pj_resample "@PJMEDIA_WITH_RESAMPLE@") |
| 61 |
if(_pj_resample STREQUAL "libsamplerate") |
| 62 |
find_dependency(SampleRate) |
| 63 |
endif() |
| 64 |
unset(_pj_resample) |
| 65 |
|
| 66 |
# FFMPEG |
| 67 |
if(@PJMEDIA_WITH_FFMPEG@) |
| 68 |
find_dependency(FFMPEG) |
| 69 |
endif() |
| 70 |
|
| 71 |
# Audio/video codecs |
| 72 |
if(@PJMEDIA_WITH_OPENCORE_AMRNB_CODEC@) |
| 73 |
find_dependency(OpenCoreAMRNB) |
| 74 |
endif() |
| 75 |
if(@PJMEDIA_WITH_OPENCORE_AMRWB_CODEC@) |
| 76 |
find_dependency(OpenCoreAMRWB) |
| 77 |
find_dependency(VisualOnAMRWBEnc) |
| 78 |
endif() |
| 79 |
if(@PJMEDIA_WITH_SILK_CODEC@) |
| 80 |
find_dependency(Silk) |
| 81 |
endif() |
| 82 |
if(@PJMEDIA_WITH_OPUS_CODEC@) |
| 83 |
find_dependency(OPUS) |
| 84 |
endif() |
| 85 |
if(@PJMEDIA_WITH_BCG729_CODEC@) |
| 86 |
find_dependency(BCG729) |
| 87 |
endif() |
| 88 |
if(@PJMEDIA_WITH_LYRA_CODEC@) |
| 89 |
find_dependency(Lyra) |
| 90 |
endif() |
| 91 |
if(@PJMEDIA_WITH_VPX_CODEC@) |
| 92 |
find_dependency(VPX) |
| 93 |
endif() |
| 94 |
if(@PJMEDIA_WITH_OPEN_H264_CODEC@) |
| 95 |
find_dependency(OpenH264) |
| 96 |
endif() |
| 97 |
|
| 98 |
set(CMAKE_MODULE_PATH "${_pj_saved_module_path}") |
| 99 |
unset(_pj_saved_module_path) |
| 100 |
|
| 101 |
# Load exported targets |
| 102 |
include("${CMAKE_CURRENT_LIST_DIR}/@PJ_CMAKE_TARGETS_FILE@") |
| 103 |
|
| 104 |
# Recreate Pj::Dep::* alias targets for bundled/system dependencies |
| 105 |
include("${CMAKE_CURRENT_LIST_DIR}/PjDeps.cmake") |