Пересобранный и видоизмененный conky для ОСГОС
This commit is contained in:
commit
3a48cf8c86
738 changed files with 217718 additions and 0 deletions
30
cmake/clang-format.cmake
Normal file
30
cmake/clang-format.cmake
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
set(ClangFormat_CXX_FILE_EXTENSIONS
|
||||
${ClangFormat_CXX_FILE_EXTENSIONS}
|
||||
*.cpp
|
||||
*.h
|
||||
*.cxx
|
||||
*.hxx
|
||||
*.hpp
|
||||
*.cc
|
||||
*.hh
|
||||
*.ipp)
|
||||
|
||||
foreach(PATTERN ${ClangFormat_CXX_FILE_EXTENSIONS})
|
||||
list(APPEND ClangFormat_CXX_PATTERN ${CMAKE_SOURCE_DIR}/src/${PATTERN})
|
||||
list(APPEND ClangFormat_CXX_PATTERN ${CMAKE_SOURCE_DIR}/tests/${PATTERN})
|
||||
list(APPEND ClangFormat_CXX_PATTERN ${CMAKE_SOURCE_DIR}/lua/${PATTERN})
|
||||
endforeach()
|
||||
|
||||
file(GLOB_RECURSE ClangFormat_SRCS ${ClangFormat_CXX_PATTERN})
|
||||
|
||||
# Remove catch2 from format sources
|
||||
list(REMOVE_ITEM ClangFormat_SRCS ${CMAKE_SOURCE_DIR}/tests/catch2/catch.hpp)
|
||||
|
||||
add_custom_target(clang-format
|
||||
COMMAND ${ClangFormat_BIN} -style=file -i
|
||||
${ClangFormat_SRCS})
|
||||
add_custom_target(check-clang-format
|
||||
COMMAND ${CMAKE_SOURCE_DIR}/bin/run-clang-format.py
|
||||
--color always
|
||||
--clang-format-executable ${ClangFormat_BIN}
|
||||
${ClangFormat_SRCS})
|
||||
Loading…
Add table
Add a link
Reference in a new issue