asmaloney / GDExtensionTemplate

📜 A template project for building Godot 4 GDExtensions using CMake
The Unlicense
228 stars 22 forks source link

Add CMake preset and VSCode support #61

Closed kelteseth closed 1 year ago

kelteseth commented 1 year ago

With this we are now able to open this project in VSCode and QtCreator and other IDEs that support CMakePresets. No laborious setup required.

https://github.com/asmaloney/GDExtensionTemplate/assets/1071536/06d26ecb-ab8c-4e46-af21-008774eb8916

This is a MVP MR. We easily can add more features like VCPKG support with a few lines.

kelteseth commented 1 year ago

Are you willing to answer questions/fix this stuff when it breaks? 😄

Sure! I'm away for the weekend so I will report back Sunday 👍

kelteseth commented 1 year ago

Ready :)

asmaloney commented 1 year ago

This still looks like it's build/launch only for debug.

Don't we need build presets and launch targets for release builds too?

kelteseth commented 1 year ago

I'm currently on vacation for the next two weeks, I will look into it afterwards :)

asmaloney commented 1 year ago

No problem at all. Have an amazing break!

kelteseth commented 1 year ago

This can still be improved. I'm currently using an altered version for my personal project ScreenPlay (Godot desktop wallpaper) here https://gitlab.com/kelteseth/ScreenPlay/-/merge_requests/108

For example, not sure if we need the launch.json because there is nothing to launch when running the project, because this only compiles the library. This still can be altered to include the Godot editor to start the project.

Also in ScreenPlay I embed the project and explicitly set the build folder to my Godot project