Verified Commit b3909634 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Add pre-commit hook for clang-format

parent 8e789d8f
......@@ -40,6 +40,7 @@ include (KDECompilerSettings)
include (GenerateExportHeader)
include (ECMGenerateHeaders)
include(KDEClangFormat)
include(KDEGitCommitHooks)
# Qt
set (CMAKE_AUTOMOC ON)
find_package (
......@@ -97,6 +98,7 @@ add_subdirectory (fileitemplugin)
# add clang-format target for all our real source files
file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
# Write out the features
feature_summary (WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment