You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

30 lines
571 B

if(Speex_INCLUDE_DIR AND Speex_LIBRARY)
set(Speex_FIND_QUIETLY TRUE)
endif()
find_path(Speex_INCLUDE_DIR speex.h
/usr/local/include
/usr/include
)
find_library(Speex_LIBRARY NAMES speex
PATHS /usr/local/lib /usr/lib
)
set(Speex_LIBRARIES ${Speex_LIBRARY})
if(Speex_INCLUDE_DIR AND Speex_LIBRARY)
set(Speex_FOUND TRUE)
endif()
if (Speex_FOUND)
if(NOT Speex_FIND_QUIETLY)
message(STATUS "Found speex: ${Speex_INCLUDE_DIR}")
endif()
else()
if(Speex_FIND_REQUIRED)
message(FATAL_ERROR "Could not find speex")
endif()
endif()