Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed install setup #16

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ LIBOBJ := $(LIBSRC:.cpp=.o)
LIBDEPS := $(LIBOBJ:.o=.d)
$(LIBNAME): CFLAGS += $(LIBINCLUDE)

LIBINSTALL := /usr/local/lib
HEADERINSTALL := /usr/local/include
INSTALLNAME := cev_icp

MAINSRC := $(shell find $(SRCDIR) -name "*.cpp" -type f)
MAININCLUDE := $(shell sdl2-config --cflags) \
-I/usr/include/eigen3 \
Expand Down Expand Up @@ -91,6 +95,17 @@ view: $(MAINNAME)
bench: $(MAINNAME)
./$(MAINNAME) -S ex_data/scan$(N)/first.conf -D ex_data/scan$(N)/second.conf --method $(METHOD) --bench

.PHONY: install
install: $(LIBNAME)
mkdir -p $(LIBINSTALL)
mkdir -p $(HEADERINSTALL)/$(INSTALLNAME)
mv $(LIBNAME) $(LIBINSTALL)
cp -r $(INCLUDEDIR)/* $(HEADERINSTALL)/$(INSTALLNAME)

.PHONY: uninstall
uninstall:
rm -r $(LIBINSTALL)/$(LIBNAME) $(HEADERINSTALL)/$(INSTALLNAME)

# Not building book rn, add these commands to build
# cd book; \
pdflatex icp.tex; \
Expand Down
21 changes: 0 additions & 21 deletions install/Makefile

This file was deleted.