Set up auto-formatter
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user