diff options
Diffstat (limited to 'api/franca/hmi/CMakeLists.txt')
-rw-r--r-- | api/franca/hmi/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/api/franca/hmi/CMakeLists.txt b/api/franca/hmi/CMakeLists.txt index 5da841e..b3c4af8 100644 --- a/api/franca/hmi/CMakeLists.txt +++ b/api/franca/hmi/CMakeLists.txt @@ -24,4 +24,12 @@ cmake_minimum_required (VERSION 2.8.1) project(franca-hmi) +get_directory_property(hasParent PARENT_DIRECTORY) + +if(hasParent) + set(COMMONAPI_GEN_DIR "${COMMONAPI_GEN_DIR}" PARENT_SCOPE) +else() + set(COMMONAPI_GEN_DIR "${CMAKE_CURRENT_BINARY_DIR}/src-gen") +endif() + add_subdirectory(speechservice) |