1 2 3 4 5 6 7
cmake_minimum_required (VERSION 2.6) project(CTestTestSubdir) include(CTest) add_subdirectory(subdir) subdirs(subdir2) subdirs("${CTestTestSubdir_SOURCE_DIR}/subdir3")