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