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.
31 lines
601 B
31 lines
601 B
14 years ago
|
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()
|