Merge pull request #118 from van800/main

Help IDEs resolve gen/include immediately
This commit is contained in:
Lukas Tenbrink
2026-05-11 12:54:04 +02:00
committed by GitHub

View File

@@ -26,6 +26,9 @@ if(NOT EXISTS "${CMAKE_CURRENT_LIST_DIR}/godot-cpp/src")
endif() endif()
add_subdirectory(godot-cpp SYSTEM) add_subdirectory(godot-cpp SYSTEM)
# Create the gen directory at configure time so IDEs can see generated headers immediately after generate_bindings
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/godot-cpp/gen/include")
# Add godot-cpp's module path and include the exported functions. # Add godot-cpp's module path and include the exported functions.
# This is made available for documentation generation # This is made available for documentation generation
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${godot-cpp_SOURCE_DIR}/cmake") set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${godot-cpp_SOURCE_DIR}/cmake")