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")