2 # Once done, this will define
4 # TTS_FOUND - system has libtts
5 # TTS_INCLUDE_DIRS - the libtts include directories
6 # TTS_LIBRARIES - link these to use libtts
10 # Use pkg-config to get hints about paths
11 libfind_pkg_check_modules(TTS_PKGCONF tts)
14 find_path(TTS_INCLUDE_DIR
16 PATHS ${TTS_PKGCONF_INCLUDE_DIRS}
20 # Finally the library itself
21 find_library(TTS_LIBRARY
23 PATHS ${TTS_PKGCONF_LIBRARY_DIRS}
26 # Set the include dir variables and the libraries and let libfind_process do the rest.
27 # NOTE: Singular variables for this library, plural for libraries this this lib depends on.
28 set(TTS_PROCESS_INCLUDES TTS_INCLUDE_DIR TTS_INCLUDE_DIRS)
29 set(TTS_PROCESS_LIBS TTS_LIBRARY TTS_LIBRARIES)