Skip to content

Commit

Permalink
update readme and presets
Browse files Browse the repository at this point in the history
  • Loading branch information
Warreign committed Aug 31, 2024
1 parent 2dfd39e commit 8203790
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools"
}
8 changes: 5 additions & 3 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@
"name": "default",
"displayName": "default",
"description": "Default preset that are inherited by all",
"generator": "Ninja Multi-Config",
"generator": "Ninja",
"hidden": true,
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/demo/addons"
}
},
{
"name": "windows",
"name": "windows-mc",
"displayName": "64bit Windows Multi-Config",
"inherits": "default",
"generator": "Ninja Multi-Config",
"binaryDir": "${sourceDir}/build/Windows-AMD64",
"condition": {
"type": "equals",
Expand All @@ -36,7 +37,8 @@
},
"cacheVariables": {
"CMAKE_C_COMPILER": "cl.exe",
"CMAKE_CXX_COMPILER": "cl.exe"
"CMAKE_CXX_COMPILER": "cl.exe",
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ This tells CMake to use `Ninja` generator. There is a list of generators [on the

**Note:** Even for multi-config generators you still have to specify `CMAKE_BUILD_TYPE`, because of the way [godot-cpp](https://github.com/godotengine/godot-cpp)'s build process is set up, hence there is not much use for this type of generators now.

Additionally, basic VSCode configuration files are provided, including launch configuration to debug the extension and `CMakePresets.json` for easier build system configuration (Configured for `Ninja`).

Presets can also be used from command-line like so:
```sh
$ cmake
```

#### Run demo project in Godot Editor

```sh
Expand Down

0 comments on commit 8203790

Please sign in to comment.