From 04e276dcb31652f49192751486df498f9bde7673 Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Mon, 8 Mar 2021 20:14:48 +0200 Subject: [PATCH] Add clang-format bits to CMakeLists.txt GIT_SILENT --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 722c279..7b1dcea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,7 @@ set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH}) include(KDEInstallDirs) include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE) include(KDECMakeSettings) +include(KDEGitCommitHooks) include(CheckIncludeFiles) @@ -73,3 +74,5 @@ if (BUILD_TESTING) endif() feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) + +kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)