[Web] Add newline to cmake template

This commit is contained in:
orosmatthew 2024-03-13 19:51:55 -04:00
parent 126fa4ed44
commit 1a50a42355

View File

@ -48,7 +48,7 @@ async function addProblemsCSharp(opts: OptsAddProblems) {
async function addProblemsCPP(opts: OptsAddProblems) {
let cmakeLists = templateCppCMakeLists;
opts.contest.problems.forEach((problem) => {
cmakeLists += `add_executable(${problem.pascalName} ${problem.pascalName}/${problem.pascalName}.cpp)`;
cmakeLists += `add_executable(${problem.pascalName} ${problem.pascalName}/${problem.pascalName}.cpp)\n`;
});
opts.fs.writeFileSync(join(opts.dir, 'CMakeLists.txt'), cmakeLists);