This repository was archived by the owner on Apr 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
63 lines (45 loc) · 1.24 KB
/
makefile
File metadata and controls
63 lines (45 loc) · 1.24 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
ROOT_DIR:=$(PWD)
SRC_ROOT:=$(ROOT_DIR)/src
BUILD_TYPE:="Release"
BUILD_DIR=$(ROOT_DIR)/build
CONAN_MARKER=$(BUILD_DIR)/conanbuildinfo.cmake
SANDBOX_EXE=build/bin/sandbox
#-------------------------------------------------------------------
# Part 2: Invoke the call to make in the build directory
#-------------------------------------------------------------------
.PHONY: debug
debug: BUILD_TYPE=Debug
debug: configure
cd $(BUILD_DIR) && ninja
.PHONY: release
release: BUILD_TYPE=Release
release: configure
cd $(BUILD_DIR) && ninja
.PHONY: conan
conan: $(CONAN_MARKER)
$(CONAN_MARKER):
@ echo "did not find conan-build-info file... rebuilding: "
cd $(BUILD_DIR) && conan install --build=missing --profile=gcc-profile ..
configure: $(CONAN_MARKER)
cd $(BUILD_DIR) && \
cmake .. -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) -GNinja
clean:
rm -rf build/*
rm -f *.png
format:
@echo clang-tidy src
.PHONY: sandbox
sandbox: debug
${SANDBOX_EXE}
.PHONY: test
test: test-all
test-all: test-geometry test-layer test-search
test-geometry: debug
build/bin/geometry-tests
test-layer: debug
build/bin/common-layer-tests
build/bin/dynamic-layer-tests
build/bin/rolling-layer-tests
build/bin/simple-layer-tests
test-search: debug
build/bin/a-star-search-tests