File: ITKModuleClangFormat.cmake

package info (click to toggle)
insighttoolkit5 5.4.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 704,588 kB
  • sloc: cpp: 784,579; ansic: 628,724; xml: 44,704; fortran: 34,250; python: 22,934; sh: 4,078; pascal: 2,636; lisp: 2,158; makefile: 461; yacc: 328; asm: 205; perl: 203; lex: 146; tcl: 132; javascript: 98; csh: 81
file content (18 lines) | stat: -rw-r--r-- 816 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Download and configure clang-format for style uniformity during development.
#
# This code helps download a version of clang-format binaries consistent with
# ITK's clang-format configuration. Git configuration is added during
# development to help automatically apply the formatting.
#
# Globally, the ITK/.clang-format file provides the base style configuration.
# For more information on ITK coding style, see the ITK Coding Style Guide in
# the ITK Software Guide.
option(ITK_USE_CLANG_FORMAT "Enable the use of clang-format for coding style formatting." ${BUILD_TESTING})
mark_as_advanced(ITK_USE_CLANG_FORMAT)

if(BUILD_TESTING
   AND ITK_USE_CLANG_FORMAT
   AND NOT CMAKE_CROSSCOMPILING
   AND NOT ITK_FORBID_DOWNLOADS)
  include(${ITK_CMAKE_DIR}/../Utilities/ClangFormat/DownloadClangFormat.cmake)
endif()