1
0
Fork 0
flightgear/3rdparty/CMakeLists.txt
Torsten Dreyer 6ee2fcdd9e Allow using the system version of flite and the HTS engine
By default, if the system version exists and can be used,
then it will be used. Otherwise, the local version will be used

Original patch by  Saikrishna Arcot via
https://gitorious.org/fg/flightgear/merge_requests/1582
slightly modified
2014-04-28 21:33:48 +02:00

27 lines
708 B
CMake

if (NOT SYSTEM_SQLITE)
add_subdirectory(sqlite3)
endif()
if (ENABLE_IAX)
add_subdirectory(iaxclient/lib)
endif()
add_subdirectory(mongoose)
add_subdirectory(cjson)
if (ENABLE_FLITE)
add_subdirectory(flite_hts_engine)
if (SYSTEM_HTS_ENGINE)
set(HTS_Engine_FIND_REQUIRED TRUE)
find_package(HtsEngine)
include_directories(${HTS_ENGINE_INCLUDE_DIR})
message(STATUS "Using HTS engine includes at: ${HTS_ENGINE_INCLUDE_DIR}")
message(STATUS "Using HTS engine libraries: ${HTS_ENGINE_LIBRARIES}")
else()
add_subdirectory(hts_engine_API)
include_directories(${PROJECT_SOURCE_DIR}/3rdparty/hts_engine_API/include )
endif()
endif()