CMake: improved dependency handling using add_subdirectory_once macro
authorTimo Lotterbach <timo.lotterbach@bmw-carit.de>
Wed, 2 Jan 2013 12:59:21 +0000 (04:59 -0800)
committerTimo Lotterbach <timo.lotterbach@bmw-carit.de>
Mon, 14 Jan 2013 08:34:17 +0000 (00:34 -0800)
commit6e7600278ff36ab767b6a809d88a0774c9c89968
treee50f8ac3d70450acd733b7e039ea1040c3eb8dd5
parente261b5d1c7ca34756b524e67c37fe52532cf4092
CMake: improved dependency handling using add_subdirectory_once macro

each component now just builds all components it dependes on using
the custom macro 'add_subdirectory_once'.

During the first call, add_subdirectory_once will add the subdirectory
to the current build. all subsequent calls are silently ignored.
This solves the basic problem of double definition of components which
result in cmake errors.

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
3rdParty/gmock/CMakeLists.txt [moved from 3rdParty/CMakeLists.txt with 59% similarity]
3rdParty/gtest/CMakeLists.txt [new file with mode: 0644]
3rdParty/systemd/CMakeLists.txt [new file with mode: 0644]
CMakeLists.txt
cmake/modules/CustomMacros.txt [new file with mode: 0644]