From 83c11434e4fd9bbf4bcf3d1e34154029459438b1 Mon Sep 17 00:00:00 2001 From: Emanuele Torre Date: Thu, 28 May 2020 21:06:44 +0200 Subject: [PATCH] CMake: Add convenience targets to run lint-shell-scripts and check-style --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 95c36d29bca..4d671a6a02e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)