blob: 12a6880ecc504dc07767c1c50f9c7e5ed588ffc5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
if (LIBSNDFILE_INCLUDE_DIR AND SNDFILE_LIBRARY)
# Already in cache, be silent
set(LIBSNDFILE_FIND_QUIETLY TRUE)
endif (LIBSNDFILE_INCLUDE_DIR AND SNDFILE_LIBRARY)
find_path(LIBSNDFILE_INCLUDE_DIR sndfile.h
PATHS /usr/include /opt/local/include/
)
find_library(SNDFILE_LIBRARY
NAMES sndfile
PATHS /usr/lib /usr/local/lib /opt/local/lib
)
set(SNDFILE_LIBRARIES ${SNDFILE_LIBRARY})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(LIBSNDFILE
DEFAULT_MSG
LIBSNDFILE_INCLUDE_DIR
SNDFILE_LIBRARIES
)
mark_as_advanced(LIBSNDFILE_INCLUDE_DIR SNDFILE_LIBRARY)
|