Godot Version
4.3 windows 10 using VC++ 2022
Question
I’m building my POC using GDExtension only. Now, I would like to use an open-source static external library. How can I add and link it to the project using only Visual Studio 2022 on Windows?
using this launch.vs.json:
{
"version": "0.2.1",
"defaults": {},
"configurations": [
{
"type": "default",
"project": "C:\\dev\\my\\godot\\Godot_v4.3-stable_win64.exe\\Godot_v4.3-stable_win64.exe",
"name": "Godot Game",
"args": [
"--windowed",
"--path",
"C:\\dev\\my\\godot\\cpp_new\\proj_test_1\\demo"
]
},
{
"type": "default",
"project": "C:\\dev\\my\\godot\\Godot_v4.3-stable_win64.exe\\Godot_v4.3-stable_win64.exe",
"name": "Godot Editor",
"args": [
"C:\\dev\\my\\godot\\cpp_new\\proj_test_1\\demo\\project.godot"
]
}
]
}
and this CppProperties.json:
{
"configurations": [
{
"inheritEnvironments": [
"msvc_x64"
],
"name": "x64-Debug",
"includePath": [
"${env.INCLUDE}",
"${workspaceRoot}\\**",
"C:\\dev\\my\\godot\\cpp_new\\godot-cpp\\godot-cpp\\**",
"C:\\dev\\my\\godot\\cpp_new\\godot-cpp\\godot-cpp\\include\\**",
"C:\\dev\\my\\godot\\cpp_new\\godot-cpp\\godot-cpp\\include\\godot_cpp\\core\\**",
"C:\\dev\\my\\godot\\cpp_new\\godot-cpp\\godot-cpp\\include\\godot_cpp\\classes\\**",
"C:\\dev\\my\\godot\\cpp_new\\godot-cpp\\godot-cpp\\include\\godot_cpp\\variant\\**"
],
"defines": [
"WIN32",
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"intelliSenseMode": "windows-msvc-x64"
}
]
}
if its help in any way …
Thanks