Warning, /multimedia/k3b/cmake/modules/FindSndfile.cmake is written in an unsupported language. File is not indexed.
0001 # 0002 # Try to find libsndfile 0003 # Once done this will define 0004 # 0005 # SNDFILE_FOUND - libsndfile was found 0006 # SNDFILE_INCLUDE_DIR - the libsndfile include directory 0007 # SNDFILE_LIBRARIES - libsndfile libraries to link to 0008 # 0009 # SPDX-FileCopyrightText: 2008 Sebastian Trueg <trueg@kde.org> 0010 # SPDX-License-Identifier: BSD-3-Clause 0011 0012 if ( SNDFILE_INCLUDE_DIR AND SNDFILE_LIBRARIES ) 0013 # in cache already 0014 SET(Sndfile_FIND_QUIETLY TRUE) 0015 endif ( SNDFILE_INCLUDE_DIR AND SNDFILE_LIBRARIES ) 0016 0017 IF (NOT WIN32) 0018 pkg_check_modules(_pc_SNDFILE sndfile) 0019 ENDIF (NOT WIN32) 0020 0021 0022 FIND_PATH(SNDFILE_INCLUDE_DIR 0023 NAMES sndfile.h 0024 HINTS ${_pc_SNDFILE_INCLUDE_DIRS} 0025 ) 0026 0027 FIND_LIBRARY(SNDFILE_LIBRARIES 0028 NAMES sndfile 0029 HINTS ${_pc_SNDFILE_LIBRARY_DIRS} 0030 ) 0031 0032 include(FindPackageHandleStandardArgs) 0033 FIND_PACKAGE_HANDLE_STANDARD_ARGS(Sndfile DEFAULT_MSG SNDFILE_INCLUDE_DIR SNDFILE_LIBRARIES ) 0034 0035 # show the SNDFILE_INCLUDE_DIR and SNDFILE_LIBRARIES variables only in the advanced view 0036 MARK_AS_ADVANCED(SNDFILE_INCLUDE_DIR SNDFILE_LIBRARIES ) 0037