Files
cantata/cmake/FindEbur128.cmake
craig.p.drummond 9b519a3d44 Use system's libebur128 if found
BUG: 415
2014-02-22 10:30:32 +00:00

42 lines
699 B
CMake

# Locate libebur128 library
# This module defines
# EBUR128_LIBRARY, the name of the library to link against
# EBUR128_FOUND, if false, do not try to link
# EBUR128_INCLUDE_DIR, where to find header
#
set(EBUR128_FOUND FALSE)
find_path(EBUR128_INCLUDE_DIR ebur128.h
HINTS
PATH_SUFFIXES include
PATHS
~/Library/Frameworks
/Library/Frameworks
/usr/local/include
/usr/include
/sw/include
/opt/local/include
/opt/csw/include
/opt/include
/mingw
)
find_library(EBUR128_LIBRARY
NAMES ebur128
HINTS
PATH_SUFFIXES lib64 lib
PATHS
/usr/local
/usr
/sw
/opt/local
/opt/csw
/opt
/mingw
)
if(EBUR128_LIBRARY)
set(EBUR128_FOUND TRUE)
endif(EBUR128_LIBRARY)