2020-03-08 05:28:46 +00:00
|
|
|
set(SndFile_VERSION @PROJECT_VERSION@)
|
|
|
|
set(SndFile_VERSION_MAJOR @PROJECT_VERSION_MAJOR@)
|
|
|
|
set(SndFile_VERSION_MINOR @PROJECT_VERSION_MINOR@)
|
|
|
|
set(SndFile_VERSION_PATCH @PROJECT_VERSION_PATCH@)
|
|
|
|
|
|
|
|
set (SndFile_WITH_EXTERNAL_LIBS @SndFile_WITH_EXTERNAL_LIBS@)
|
2021-12-16 07:17:11 +00:00
|
|
|
set (SndFile_WITH_MPEG @SndFile_WITH_MPEG@)
|
2020-03-08 05:28:46 +00:00
|
|
|
|
|
|
|
@PACKAGE_INIT@
|
|
|
|
|
|
|
|
include (CMakeFindDependencyMacro)
|
|
|
|
|
2020-05-13 16:00:13 +00:00
|
|
|
if (SndFile_WITH_EXTERNAL_LIBS AND NOT @BUILD_SHARED_LIBS@)
|
|
|
|
find_dependency (Ogg 1.3)
|
2020-07-26 08:35:28 +00:00
|
|
|
find_dependency (Vorbis)
|
2020-05-13 16:00:13 +00:00
|
|
|
find_dependency (FLAC)
|
|
|
|
find_dependency (Opus)
|
|
|
|
endif ()
|
2020-03-08 05:28:46 +00:00
|
|
|
|
2021-12-16 07:17:11 +00:00
|
|
|
if (SndFile_WITH_MPEG AND NOT @BUILD_SHARED_LIBS@)
|
2022-04-02 06:04:55 +00:00
|
|
|
find_dependency (mp3lame)
|
2021-12-16 07:17:11 +00:00
|
|
|
find_dependency (MPG123)
|
|
|
|
endif ()
|
|
|
|
|
2020-03-08 05:28:46 +00:00
|
|
|
include (${CMAKE_CURRENT_LIST_DIR}/SndFileTargets.cmake)
|
|
|
|
|
|
|
|
set_and_check (SndFile_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
|
|
|
|
set (SNDFILE_INCLUDE_DIR ${SndFile_INCLUDE_DIR})
|
|
|
|
|
|
|
|
set (SndFile_LIBRARY SndFile::sndfile)
|
|
|
|
set (SNDFILE_LIBRARY SndFile::sndfile)
|
|
|
|
set (SndFile_LIBRARIES SndFile::sndfile)
|
|
|
|
set (SNDFILE_LIBRARIES SndFile::sndfile)
|
|
|
|
|
|
|
|
|
|
|
|
check_required_components(SndFile)
|
|
|
|
|
|
|
|
set (SNDFILE_FOUND 1)
|