~dblsaiko/desktoputils

a202f1073e49df45fccf1180c39ad00cdecac556 — Marco Rebhan a year ago 02dcf2e
Add formatter git commit hook
1 files changed, 3 insertions(+), 0 deletions(-)

M CMakeLists.txt
M CMakeLists.txt => CMakeLists.txt +3 -0
@@ 11,6 11,9 @@ include(KDEClangFormat)
file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h *.c)
kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})

include(KDEGitCommitHooks)
kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)

include(KDECompilerSettings NO_POLICY_SCOPE)

find_package(PkgConfig REQUIRED)