Skip to content

Commit dc2c109

Browse files
authoredDec 4, 2024··
Merge pull request #16 from cornellev/install_setup
Fixed install setup
2 parents a67ed0f + ca6a0d1 commit dc2c109

File tree

2 files changed

+15
-21
lines changed

2 files changed

+15
-21
lines changed
 

‎Makefile

+15
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ LIBOBJ := $(LIBSRC:.cpp=.o)
2626
LIBDEPS := $(LIBOBJ:.o=.d)
2727
$(LIBNAME): CFLAGS += $(LIBINCLUDE)
2828

29+
LIBINSTALL := /usr/local/lib
30+
HEADERINSTALL := /usr/local/include
31+
INSTALLNAME := cev_icp
32+
2933
MAINSRC := $(shell find $(SRCDIR) -name "*.cpp" -type f)
3034
MAININCLUDE := $(shell sdl2-config --cflags) \
3135
-I/usr/include/eigen3 \
@@ -91,6 +95,17 @@ view: $(MAINNAME)
9195
bench: $(MAINNAME)
9296
./$(MAINNAME) -S ex_data/scan$(N)/first.conf -D ex_data/scan$(N)/second.conf --method $(METHOD) --bench
9397

98+
.PHONY: install
99+
install: $(LIBNAME)
100+
mkdir -p $(LIBINSTALL)
101+
mkdir -p $(HEADERINSTALL)/$(INSTALLNAME)
102+
mv $(LIBNAME) $(LIBINSTALL)
103+
cp -r $(INCLUDEDIR)/* $(HEADERINSTALL)/$(INSTALLNAME)
104+
105+
.PHONY: uninstall
106+
uninstall:
107+
rm -r $(LIBINSTALL)/$(LIBNAME) $(HEADERINSTALL)/$(INSTALLNAME)
108+
94109
# Not building book rn, add these commands to build
95110
# cd book; \
96111
pdflatex icp.tex; \

‎install/Makefile

-21
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.