Merge pull request #1720 from enetheru/generator_target

CMake: Add generate_bindings custom target
pull/1612/merge
David Snopek 2025-02-27 12:57:35 -06:00 committed by GitHub
commit c8c25cd312
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -252,6 +252,9 @@ function( godotcpp_generate )
"${GODOT_PRECISION}"
"${CMAKE_CURRENT_BINARY_DIR}" )
add_custom_target( godot-cpp.generate_bindings DEPENDS ${GENERATED_FILES_LIST} )
set_target_properties( godot-cpp.generate_bindings PROPERTIES FOLDER "godot-cpp" )
### Platform is derived from the toolchain target
# See GeneratorExpressions PLATFORM_ID and CMAKE_SYSTEM_NAME
string( CONCAT SYSTEM_NAME