Create the godot-cpp/gen/include directory at configure time so IDEs can see generated headers immediately after generate_bindings target produces them

This commit is contained in:
Ivan Shakhov
2026-05-06 07:15:21 +03:00
parent c5d45ad8ab
commit 5f9cc1e42e

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")