[Web] Add newline to cmake template
This commit is contained in:
parent
126fa4ed44
commit
1a50a42355
@ -48,7 +48,7 @@ async function addProblemsCSharp(opts: OptsAddProblems) {
|
|||||||
async function addProblemsCPP(opts: OptsAddProblems) {
|
async function addProblemsCPP(opts: OptsAddProblems) {
|
||||||
let cmakeLists = templateCppCMakeLists;
|
let cmakeLists = templateCppCMakeLists;
|
||||||
opts.contest.problems.forEach((problem) => {
|
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);
|
opts.fs.writeFileSync(join(opts.dir, 'CMakeLists.txt'), cmakeLists);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user