mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-18 08:49:29 -04:00
build: add check-format
and tidy
targets
This commit is contained in:
parent
65ae35024a
commit
bbda0ffbae
@ -915,6 +915,17 @@ add_custom_target(
|
|||||||
format
|
format
|
||||||
COMMAND clang-format -i ${ALL_SOURCES})
|
COMMAND clang-format -i ${ALL_SOURCES})
|
||||||
|
|
||||||
|
add_custom_target(
|
||||||
|
check-format
|
||||||
|
COMMAND clang-format --dry-run --Werror ${ALL_SOURCES})
|
||||||
|
|
||||||
|
add_custom_target(
|
||||||
|
tidy
|
||||||
|
COMMAND run-clang-tidy -p ${CMAKE_BINARY_DIR} -quiet -use-color
|
||||||
|
-source-filter='.*/src/.*'
|
||||||
|
-header-filter='.*/include/dwarfs/.*'
|
||||||
|
USES_TERMINAL)
|
||||||
|
|
||||||
if(STATIC_BUILD_DO_NOT_USE OR APPLE)
|
if(STATIC_BUILD_DO_NOT_USE OR APPLE)
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||||
foreach(tgt ${BINARY_TARGETS})
|
foreach(tgt ${BINARY_TARGETS})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user