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
Network
KTorrent
Commits
0d6bf2f5
Commit
0d6bf2f5
authored
Jan 27, 2021
by
Alexander Lohnau
💬
Browse files
Add clang-format target
parent
52f5e050
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
0d6bf2f5
...
@@ -28,6 +28,7 @@ include(ECMInstallIcons)
...
@@ -28,6 +28,7 @@ include(ECMInstallIcons)
include
(
ECMAddAppIcon
)
include
(
ECMAddAppIcon
)
include
(
ECMMarkAsTest
)
include
(
ECMMarkAsTest
)
include
(
ECMMarkNonGuiExecutable
)
include
(
ECMMarkNonGuiExecutable
)
include
(
KDEClangFormat
)
set
(
CMAKE_CXX_STANDARD 14
)
set
(
CMAKE_CXX_STANDARD 14
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
...
@@ -220,5 +221,8 @@ add_subdirectory(ktmagnetdownloader)
...
@@ -220,5 +221,8 @@ add_subdirectory(ktmagnetdownloader)
if
(
KF5DocTools_FOUND
)
if
(
KF5DocTools_FOUND
)
add_subdirectory
(
doc
)
add_subdirectory
(
doc
)
endif
()
endif
()
# 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
}
)
feature_summary
(
WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES
)
feature_summary
(
WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES
)
Write
Preview
Markdown
is supported
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