This commit is contained in:
Erik Frojdh 2020-05-04 16:18:55 +02:00
parent 4e4f06560c
commit 32662baef8

View File

@ -39,40 +39,7 @@ add_custom_target(format-check
add_custom_target(
sf
listformatfiles
COMMAND
echo ${ALL_SOURCE_FILES}
)
add_custom_target( list
COMMAND
foreach (SOURCE_FILE ${ALL_SOURCE_FILES})
message(${SOURCE_FILE})
endforeach ()
)
# # Get the path to this file
# get_filename_component(_clangcheckpath ${CMAKE_CURRENT_LIST_FILE} PATH)
# # have at least one here by default
# set(CHANGED_FILE_EXTENSIONS ".cpp")
# foreach(EXTENSION ${ClangFormat_CXX_FILE_EXTENSIONS})
# set(CHANGED_FILE_EXTENSIONS "${CHANGED_FILE_EXTENSIONS},${EXTENSION}" )
# endforeach()
# set(EXCLUDE_PATTERN_ARGS)
# foreach(EXCLUDE_PATTERN ${ClangFormat_EXCLUDE_PATTERNS})
# list(APPEND EXCLUDE_PATTERN_ARGS "--exclude=${EXCLUDE_PATTERN}")
# endforeach()
# # call the script to check changed files in git
# add_custom_target(format-check-changed
# COMMENT "Checking changed files in git"
# WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
# COMMAND ${_clangcheckpath}/../scripts/clang-format-check-changed.py
# --file-extensions \"${CHANGED_FILE_EXTENSIONS}\"
# ${EXCLUDE_PATTERN_ARGS}
# --clang-format-bin ${ClangFormat_BIN}
# )