-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
74 lines (54 loc) · 1.63 KB
/
Makefile
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
64
65
66
67
68
69
70
71
72
73
.PHONY: release
release: clean-cache
mkdir -p build/release
cd build/release && cmake -DCMAKE_BUILD_TYPE=Release $(CMAKE_ARGUMENTS) ../..
$(MAKE) -C build/release $(MFLAGS)
.PHONY: relwithdebinfo
relwithdebinfo: clean-cache
mkdir -p build/relwithdebinfo
cd build/relwithdebinfo && cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo $(CMAKE_ARGUMENTS) ../..
$(MAKE) -C build/relwithdebinfo $(MFLAGS)
.PHONY: debug
debug: clean-cache
mkdir -p build/debug/logs
cd build/debug && cmake -DCMAKE_BUILD_TYPE=Debug $(CMAKE_ARGUMENTS) ../..
$(MAKE) -C build/debug $(MFLAGS)
.PHONY: install
install:
$(MAKE) -C build/release $(MFLAGS) install
.PHONY: uninstall
uninstall:
$(MAKE) -C build/release $(MFLAGS) uninstall
.PHONY: test
test: release
$(MAKE) -C build/release $(MFLAGS) test
.PHONY: test-relwithdebinfo
test-relwithdebinfo: relwithdebinfo
$(MAKE) -C build/relwithdebinfo $(MFLAGS) test
.PHONY: test-debug
test-debug: debug
$(MAKE) -C build/debug $(MFLAGS) test
.PHONY: test-install
test-install:
rm -rf build/testinstall
mkdir -p build/testinstall
cd build/testinstall && cmake -DCMAKE_BUILD_TYPE=Release $(CMAKE_ARGUMENTS) ../../test/test_install
$(MAKE) -C build/testinstall $(MFLAGS)
$(MAKE) -C build/testinstall $(MFLAGS) test
.PHONY: doc
doc:
doxygen
.PHONY: format
format:
find se_apps se_core se_denseslam se_shared se_voxel_impl -regex '.*\.\(cpp\|hpp\|c\|h\)' -exec clang-format-10 -style=file -i {} \;
.PHONY: clean
clean:
rm -rf build
.PHONY: clean-cache
clean-cache:
rm -rf build/release/CMakeCache.txt
rm -rf build/relwithdebinfo/CMakeCache.txt
rm -rf build/debug/CMakeCache.txt
.PHONY: clean-doc
clean-doc:
rm -rf doc/html