1 2 3 4 5 6
cmake_minimum_required(VERSION 3.10) project(test) foreach(i RANGE 1 30) add_executable(test${i} src/test_${i}.cpp) endforeach()