[education/rkward] /: Auto-enforce formatting
Thomas Friedrichsmeier
null at kde.org
Sun Aug 31 13:51:37 BST 2025
Git commit a8a4c09fb93c11dbf3d29569ff064cdd9731eb3e by Thomas Friedrichsmeier.
Committed on 30/08/2025 at 21:51.
Pushed by tfry into branch 'master'.
Auto-enforce formatting
M +5 -0 CMakeLists.txt
https://invent.kde.org/education/rkward/-/commit/a8a4c09fb93c11dbf3d29569ff064cdd9731eb3e
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5941084ea..8d1ce027b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,6 +17,11 @@ SET(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
INCLUDE(KDEInstallDirs)
INCLUDE(KDECMakeSettings)
INCLUDE(KDECompilerSettings)
+INCLUDE(KDEClangFormat)
+FILE(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h *.js)
+kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
+INCLUDE(KDEGitCommitHooks)
+kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
INCLUDE(ECMInstallIcons)
INCLUDE(ECMAddAppIcon)
INCLUDE(ECMMarkNonGuiExecutable)
More information about the rkward-tracker
mailing list