Skip to content

Commit c8c25cd

Browse files
authored
Merge pull request godotengine#1720 from enetheru/generator_target
CMake: Add generate_bindings custom target
2 parents 375c0d1 + e7f07da commit c8c25cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/godotcpp.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@ function( godotcpp_generate )
252252
"${GODOT_PRECISION}"
253253
"${CMAKE_CURRENT_BINARY_DIR}" )
254254

255+
add_custom_target( godot-cpp.generate_bindings DEPENDS ${GENERATED_FILES_LIST} )
256+
set_target_properties( godot-cpp.generate_bindings PROPERTIES FOLDER "godot-cpp" )
257+
255258
### Platform is derived from the toolchain target
256259
# See GeneratorExpressions PLATFORM_ID and CMAKE_SYSTEM_NAME
257260
string( CONCAT SYSTEM_NAME

0 commit comments

Comments
 (0)