-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (29 loc) · 673 Bytes
/
Makefile
File metadata and controls
37 lines (29 loc) · 673 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
30
31
32
33
34
35
36
37
.PHONY: all docs setup test clean ntidy_commit
all:
@echo "Run 'make setup' to setup the project"
@echo "Run 'make test' to run the tests"
@echo "Run 'make clean' to clean the run-generated files"
docs:
@echo "TO BE UPDATED"
setup:
pip install -e .
test:
pytest tests
ctest:
@mkdir -p build \
&& cd build \
&& cmake -DBUILD_TESTS=ON -DBUILD_PYBIND=ON .. \
&& cmake --build . \
&& ctest
pybind_intellisense:
@mkdir -p build \
&& cd build \
&& cmake -DBUILD_PYBIND=ON .. \
&& cmake --build .
# delete all gitignored files
clean:
git clean -fdX
# not tidy (ignore clang-tidy error)
ntidy_commit:
git add .
IGNORE_CLANG_TIDY_ERROR=1 git commit