From 3a01bf4b0d13854441e639575a14256c96ba31a0 Mon Sep 17 00:00:00 2001 From: BennyR Date: Thu, 15 May 2014 16:41:55 +0200 Subject: [PATCH] Fixed paths in CMakeLists.txt --- cerevoice_tts/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cerevoice_tts/CMakeLists.txt b/cerevoice_tts/CMakeLists.txt index 3afe0a6..18f02d4 100644 --- a/cerevoice_tts/CMakeLists.txt +++ b/cerevoice_tts/CMakeLists.txt @@ -22,6 +22,12 @@ elseif(EXISTS "/opt/cereproc/cerevoice") elseif(EXISTS "/opt/cerevoice") MESSAGE(STATUS "Setting location of CereVoice to /opt/cerevoice") set(cerevoice_DIR /opt/cerevoice) +elseif(EXISTS "${PROJECT_SOURCE_DIR}/../../cerevoice_sdk") + set(cerevoice_DIR ${PROJECT_SOURCE_DIR}/../../cerevoice_sdk) + MESSAGE(STATUS "Setting location of CereVoice to ${cerevoice_DIR}") +elseif(EXISTS "${PROJECT_SOURCE_DIR}/../cerevoice_sdk") + set(cerevoice_DIR ${PROJECT_SOURCE_DIR}/../cerevoice_sdk) + MESSAGE(STATUS "Setting location of CereVoice to ${cerevoice_DIR}") # here you can add more locations else() MESSAGE(SEND_ERROR "Can't find location of CereVoice! Modify the CMakeLists.txt to find your installation directory")