mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 10:37:41 -04:00
cmake: detect speex if it is in /usr/include/speex/
This commit is contained in:
@ -3,9 +3,12 @@ if(Speex_INCLUDE_DIR AND Speex_LIBRARY)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
#It would be a good idea to eventually use pkgconfig here.
|
||||||
find_path(Speex_INCLUDE_DIR speex.h
|
find_path(Speex_INCLUDE_DIR speex.h
|
||||||
/usr/local/include
|
/usr/local/include
|
||||||
/usr/include
|
/usr/include
|
||||||
|
/usr/local/include/speex
|
||||||
|
/usr/include/speex
|
||||||
)
|
)
|
||||||
|
|
||||||
find_library(Speex_LIBRARY NAMES speex
|
find_library(Speex_LIBRARY NAMES speex
|
||||||
@ -25,6 +28,11 @@ if (Speex_FOUND)
|
|||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
if(Speex_FIND_REQUIRED)
|
if(Speex_FIND_REQUIRED)
|
||||||
message(FATAL_ERROR "Could not find speex")
|
if(NOT Speex_LIBRARIES)
|
||||||
|
message(FATAL_ERROR "Could not find speex libraries")
|
||||||
|
endif()
|
||||||
|
if(NOT Speex_INCLUDE_DIR)
|
||||||
|
message(FATAL_ERROR "Could not find speex includes")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
Reference in New Issue
Block a user