Set up auto-formatter

This commit is contained in:
2024-12-25 18:08:53 +00:00
parent 21cf170b5a
commit 5c49bb98ce
5 changed files with 37 additions and 0 deletions

View File

@@ -14,6 +14,15 @@ macro(set_default_target_options target)
endif()
endmacro()
add_custom_target(format
COMMAND sh ${CMAKE_SOURCE_DIR}/scripts/format.sh
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)
add_custom_target(check-format
COMMAND sh ${CMAKE_SOURCE_DIR}/scripts/check-format.sh
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)
add_subdirectory(engine)
if (${TESTS})