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

Add clang-format configuration

parent ddd55c10
......@@ -25,6 +25,10 @@ include(ECMAddTests)
include(ECMQtDeclareLoggingCategory)
include(FeatureSummary)
include(ECMAddAppIcon)
if(ECM_VERSION VERSION_GREATER_EQUAL 5.79)
include(KDEClangFormat)
include(KDEGitCommitHooks)
endif()
set(KEDITBOOKMARKS_VERSION "5.97.0")
......@@ -44,3 +48,8 @@ add_subdirectory(doc)
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
if(ECM_VERSION VERSION_GREATER_EQUAL 5.79)
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)
endif()
Markdown is supported
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