You want the following:
projected / CMakeLists.txt:
cmake_minimum_required(VERSION 2.8 FATAL_ERROR) project(MyTest) add_subdirectory(subdir0) add_subdirectory(subdir1)
projected / subdir0 / CMakeLists.txt:
add_executable(app0 app0.cpp) add_executable(app1 app1.cpp)
projected / subdir1 / CMakeLists.txt:
add_executable(app2 app2.cpp)
Then at the command prompt, simply do:
mkdir <root of proj>/build cd <root of proj>/build cmake ..
source share