Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Polkit KDE Agent
Commits
f7f00ae4
Commit
f7f00ae4
authored
Jan 16, 2021
by
Alexander Lohnau
💬
Browse files
Add pre-commit hook for clang-format
parent
6104954f
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
f7f00ae4
...
...
@@ -17,6 +17,10 @@ include(KDEClangFormat)
include
(
FeatureSummary
)
include
(
ECMConfiguredInstall
)
if
(
ECM_VERSION VERSION_GREATER_EQUAL 5.79
)
include
(
KDEGitCommitHooks
)
endif
()
find_package
(
Qt5
${
QT_MIN_VERSION
}
CONFIG REQUIRED Core DBus Widgets
)
# Load the frameworks we need
...
...
@@ -99,4 +103,7 @@ install(FILES policykit1-kde.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFY5RCDIR})
file
(
GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h
)
kde_clang_format
(
${
ALL_CLANG_FORMAT_SOURCE_FILES
}
)
if
(
ECM_VERSION VERSION_GREATER_EQUAL 5.79
)
kde_configure_git_pre_commit_hook
(
CHECKS CLANG_FORMAT
)
endif
()
feature_summary
(
WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment