-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (23 loc) · 698 Bytes
/
Makefile
File metadata and controls
30 lines (23 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.PHONY: install
install:
conan install . --build=missing
.PHONY: build
build: install
cd build && cmake .. -DCMAKE_TOOLCHAIN_FILE=Release/generators/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release -G Ninja
cd build && cmake --build . -j
.PHONY: test
test: build
cd build && ./template_tests
.PHONY: lint-check
lint-check:
run-clang-tidy -j $(shell nproc) -p build
.PHONY: format-check
format-check:
find src tst -name '*.cpp' -o -name '*.hpp' | xargs clang-format --style=file --Werror --dry-run
.PHONY: format
format:
find src tst -name '*.cpp' -o -name '*.hpp' | xargs clang-format --style=file -i
run-clang-tidy -fix -j $(shell nproc) -p build
.PHONY: clean
clean:
rm -rf build