Skip to content

Commit 7dbcd19

Browse files
committed
chore: add CMake presets and simplify gitignore
- Add CMakePresets.json with Ninja generator configuration - Simplify .gitignore to focus on IDE and build output directories - Preserve build/Jamfile and build/wolfssl.jam in version control
1 parent ff82442 commit 7dbcd19

File tree

2 files changed

+22
-25
lines changed

2 files changed

+22
-25
lines changed

.gitignore

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,6 @@
1-
/bin
2-
/bin64
3-
/_build*
4-
temp
5-
6-
# Emacs
7-
*#
8-
9-
# Vim
10-
*~
11-
12-
# Visual Studio
13-
/.vs
14-
/out
15-
16-
# Visual Studio Code
17-
/.vscode
18-
19-
# clangd
20-
/.cache
21-
/.clangd
22-
/compile_commands.json
23-
24-
/.temp
25-
1+
/.vscode/
2+
/build/
3+
!/build/Jamfile
4+
!/build/wolfssl.jam
5+
/out/
6+
CMakeUserPresets.json

CMakePresets.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"version": 8,
3+
"configurePresets": [
4+
{
5+
"name": "Custom configure preset",
6+
"displayName": "Custom configure preset",
7+
"description": "Sets Ninja generator, build and install directory",
8+
"generator": "Ninja",
9+
"binaryDir": "${sourceDir}/out/build/${presetName}",
10+
"cacheVariables": {
11+
"CMAKE_BUILD_TYPE": "Debug",
12+
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}"
13+
}
14+
}
15+
]
16+
}

0 commit comments

Comments
 (0)