-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
28 lines (22 loc) · 800 Bytes
/
makefile
File metadata and controls
28 lines (22 loc) · 800 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
all: demo
demo: demo/main_test.cpp
echo "building demo/app_demo"
g++ --std=c++11 $< -Iinclude/ -o demo/app_demo
echo "running demo/app_demo"
demo/app_demo
test:
cd tests && make
test-coverage: test
cd tests && make test-coverage
echo "see tests/reports/index.html for more information"
CATCH2_DIR=tests/thirdparty/Catch2
vendor:
git init
mkdir -p tests/thirdparty
git submodule add https://github.com/catchorg/Catch2.git $(CATCH2_DIR) || true
git submodule update --remote
(cd $(CATCH2_DIR) && git checkout v3.3.2)
#
(cd tests/thirdparty/catch2/ && curl -LO https://github.com/catchorg/Catch2/releases/download/v3.3.2/catch_amalgamated.hpp)
(cd tests/thirdparty/catch2/ && curl -LO https://github.com/catchorg/Catch2/releases/download/v3.3.2/catch_amalgamated.cpp)
.PHONY: demo