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