From e19fbc980bcde4e16b30b78a9be555cbc26bf3b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=A0tefka?= Date: Mon, 11 Dec 2023 04:32:06 +0100 Subject: [PATCH] feat(CTemplate): add basic .vscode and blank puzzle.input --- C_Tempate/.vscode/launch.json | 24 ++++++++++++++++++++ C_Tempate/.vscode/tasks.json | 42 +++++++++++++++++++++++++++++++++++ C_Tempate/puzzle.input | 0 3 files changed, 66 insertions(+) create mode 100644 C_Tempate/.vscode/launch.json create mode 100644 C_Tempate/.vscode/tasks.json create mode 100644 C_Tempate/puzzle.input diff --git a/C_Tempate/.vscode/launch.json b/C_Tempate/.vscode/launch.json new file mode 100644 index 0000000..c64acf2 --- /dev/null +++ b/C_Tempate/.vscode/launch.json @@ -0,0 +1,24 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Debug", + "type": "cppdbg", + "request": "launch", + "args": [], + "stopAtEntry": true, + "cwd": "${workspaceFolder}/build", + "environment": [], + "externalConsole": false, + "linux": { + "MIMode": "gdb", + "miDebuggerPath": "gdb", + "program": "${workspaceFolder}/build/CTemplate", + "args": [ + "../puzzle.input" + ] + }, + "preLaunchTask": "build" + } + ] +} diff --git a/C_Tempate/.vscode/tasks.json b/C_Tempate/.vscode/tasks.json new file mode 100644 index 0000000..574e17d --- /dev/null +++ b/C_Tempate/.vscode/tasks.json @@ -0,0 +1,42 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "type": "shell", + "group": { + "kind": "build", + "isDefault": true + }, + "linux": { + "command": "bash", + "args": [ + "-c", + "'mkdir -p build && cd build && cmake .. && make'" + ] + } + }, + { + "label": "build & run", + "type": "shell", + "linux": { + "command": "bash", + "args": [ + "-c", + "'make run'" + ] + } + }, + { + "label": "clean", + "type": "shell", + "linux": { + "command": "bash", + "args": [ + "-c", + "'cd build && make clean'" + ] + } + } + ] +} diff --git a/C_Tempate/puzzle.input b/C_Tempate/puzzle.input new file mode 100644 index 0000000..e69de29