Skip to content

Commit 3a35e88

Browse files
committed
fix: Configure launch.json to work with CMake Tools extension
1 parent da8f261 commit 3a35e88

6 files changed

Lines changed: 4150 additions & 1 deletion

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ out/
66

77
# IDE files
88
.vs/
9-
.vscode/
109
.idea/
1110
*.swp
1211
*.swo

.vscode/launch.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "(Windows) Launch with CMake",
6+
"type": "cppvsdbg",
7+
"request": "launch",
8+
"program": "${command:cmake.launchTargetPath}",
9+
"args": [],
10+
"stopAtEntry": false,
11+
"cwd": "${workspaceFolder}",
12+
"environment": [],
13+
"console": "integratedTerminal"
14+
},
15+
{
16+
"name": "Run graph3_tests",
17+
"type": "cppvsdbg",
18+
"request": "launch",
19+
"program": "${workspaceFolder}/build/tests/Debug/graph3_tests.exe",
20+
"args": [],
21+
"stopAtEntry": false,
22+
"cwd": "${workspaceFolder}",
23+
"environment": [],
24+
"console": "integratedTerminal",
25+
"preLaunchTask": "cmake: build"
26+
},
27+
{
28+
"name": "Run graph3_tests (Release)",
29+
"type": "cppvsdbg",
30+
"request": "launch",
31+
"program": "${workspaceFolder}/build/tests/Release/graph3_tests.exe",
32+
"args": [],
33+
"stopAtEntry": false,
34+
"cwd": "${workspaceFolder}",
35+
"environment": [],
36+
"console": "integratedTerminal",
37+
"preLaunchTask": "cmake: build"
38+
}
39+
]
40+
}

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"cmake.configureOnOpen": false,
3+
"cmake.preferredGenerators": [
4+
"Ninja"
5+
],
6+
"cmake.generator": "Ninja",
7+
"cmake.cmakePath": "cmake"
8+
}

0 commit comments

Comments
 (0)