diff options
author | christian mueller <christian.ei.mueller@bmw.de> | 2012-04-03 17:38:04 +0200 |
---|---|---|
committer | christian mueller <christian.ei.mueller@bmw.de> | 2012-04-03 17:38:04 +0200 |
commit | 5dfae2a4835f205b8204ffcb832c9907741c902e (patch) | |
tree | 349b1c3565e27b412ee2b78fee044947ebab4d3c | |
parent | 2a10a4e177bade0c55ac94d82aff00f6993cfa91 (diff) | |
download | audiomanager-5dfae2a4835f205b8204ffcb832c9907741c902e.tar.gz |
* add check if ProjectSpecific exists
Signed-off-by: christian mueller <christian.ei.mueller@bmw.de>
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 48cce3a..7d63451 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -106,13 +106,16 @@ endif(USE_BUILD_LIBS) SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake) SET(AUDIO_INCLUDE_FOLDER ${CMAKE_SOURCE_DIR}/include) -SET(PROJECT_INCLUDE_FOLDER ${CMAKE_SOURCE_DIR}/ProjectSpecific/include) SET(DOC_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/doc) SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/bin) SET(TEST_EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/bin/test) SET(DOXY_PROTOTYPE ${CMAKE_SOURCE_DIR}/cmake/DoxyFile.in) SET(DOXY_FILE ${CMAKE_CURRENT_BINARY_DIR}/DoxyFile) +IF(EXISTS "ProjectSpecific/") + SET(PROJECT_INCLUDE_FOLDER ${CMAKE_SOURCE_DIR}/ProjectSpecific/include) +endif(EXISTS "ProjectSpecific/") + CONFIGURE_FILE( ${CMAKE_SOURCE_DIR}/cmake/config.cmake ${CMAKE_SOURCE_DIR}/include/config.h ) CONFIGURE_FILE( ${CMAKE_SOURCE_DIR}/AudioManagerDaemon/docx/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/DoxyFile ) @@ -152,7 +155,9 @@ if(WITH_MAIN) add_subdirectory (AudioManagerDaemon) endif(WITH_MAIN) -add_subdirectory (ProjectSpecific) +IF(EXISTS "ProjectSpecific/") + add_subdirectory (ProjectSpecific) +endif(EXISTS "ProjectSpecific/") # uninstall target configure_file( |