set (targets cech-complex) foreach (t ${targets}) add_executable (${t} ${t}.cpp) target_link_libraries (${t} ${libraries}) endforeach (t ${targets})