CMake: Add convenience targets to run lint-shell-scripts and check-style

This commit is contained in:
Emanuele Torre 2020-05-28 21:06:44 +02:00 committed by Andreas Kling
parent d963be795d
commit 83c11434e4
Notes: sideshowbarker 2024-07-19 06:00:03 +09:00

View file

@ -20,6 +20,15 @@ add_custom_target(grub-image
USES_TERMINAL
)
add_custom_target(lint-shell-scripts
COMMAND ${CMAKE_SOURCE_DIR}/Meta/lint-shell-scripts.sh
USES_TERMINAL
)
add_custom_target(check-style
COMMAND ${CMAKE_SOURCE_DIR}/Meta/check-style.sh
USES_TERMINAL
)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror -std=c++2a -fdiagnostics-color=always")
include_directories(Libraries)