blob: 00c83b6a008700915bd44fcfd1c9dda1521b8e85 (
plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# - Try to find EST
# Once done this will define
#
# EST_FOUND - set to true if EST was found
# EST_LIBRARIES - link these to use EST
# EST_INCLUDE_DIR - path to EST header files
if (EST_LIBRARIES AND EST_INCLUDE_DIR)
# in cache already
set(EST_FOUND TRUE)
else (EST_LIBRARIES AND EST_INCLUDE_DIR)
set(CANDIDATE_LIB_DIR
/usr/lib
/usr/local/lib
/usr/lib/pulse
/usr/local/lib/speech_tools
/usr/local/speech_tools/lib
/opt/speech_tools/lib
)
set(CANDIDATE_INC_DIR
/usr/include
/usr/include/speech_tools
/usr/local/include
/usr/local/include/speech_tools
/usr/local/speech_tools/include
/opt/speech_tools/include
/usr/include/estools
)
find_path(EST_INCLUDE_DIR EST.h ${CANDIDATE_INC_DIR})
#find_library(ESD_LIBRARY esd ${CANDIDATE_LIB_DIR})
find_library(ESTOOLS_LIBRARY estools ${CANDIDATE_LIB_DIR})
find_library(ESTSTRING_LIBRARY eststring ${CANDIDATE_LIB_DIR})
find_library(ESTBASE_LIBRARY estbase ${CANDIDATE_LIB_DIR})
set(EST_LIBRARIES
#${ESD_LIBRARY}
${ESTOOLS_LIBRARY}
${ESTSTRING_LIBRARY}
${ESTBASE_LIBRARY}
)
# status output
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(EST
DEFAULT_MSG
#ESD_LIBRARY
ESTOOLS_LIBRARY
ESTSTRING_LIBRARY
ESTBASE_LIBRARY
EST_INCLUDE_DIR
)
mark_as_advanced(
EST_INCLUDE_DIR
EST_LIBRARIES
)
endif (EST_LIBRARIES AND EST_INCLUDE_DIR)
|