19 lines
350 B
CMake
19 lines
350 B
CMake
|
file(GLOB ALL_SOURCE_FILES src/*.cpp src/*.h src/AST/*.cpp src/AST/*.h)
|
||
|
|
||
|
add_custom_target(
|
||
|
clang-format
|
||
|
COMMAND /usr/bin/clang-format
|
||
|
-style=file
|
||
|
-i
|
||
|
${ALL_SOURCE_FILES}
|
||
|
)
|
||
|
|
||
|
add_custom_target(
|
||
|
clang-tidy
|
||
|
COMMAND /usr/bin/clang-tidy
|
||
|
${ALL_SOURCE_FILES}
|
||
|
-config=''
|
||
|
--
|
||
|
-std=c++20
|
||
|
-I${INCLUDE_DIRECTORIES}
|
||
|
)
|