~sotirisp/parallaxis

934a5a97c8bbc61deaded85ec97d53d900592ac6 — Sotiris Papatheodorou 1 year, 8 months ago 2f85768
Select the available OpenCV version
1 files changed, 5 insertions(+), 2 deletions(-)

M Makefile
M Makefile => Makefile +5 -2
@@ 12,8 12,11 @@ CXXSOURCES = src/parallaxis.cpp

# Preprocessor, compiler and linker flags.
CPPFLAGS +=
CFLAGS = -std=c++17 $(shell pkg-config --cflags opencv)
LDLIBS = -lm -lstdc++fs $(shell pkg-config --libs opencv)
CFLAGS = -std=c++17
LDLIBS = -lm -lstdc++fs
# Use the available OpenCV version
CFLAGS += $(shell if pkg-config --exists opencv; then pkg-config --cflags opencv; else pkg-config --cflags opencv4; fi)
LDLIBS += $(shell if pkg-config --exists opencv; then pkg-config --libs opencv; else pkg-config --libs opencv4; fi)

PREFIX ?= /usr/local
_INSTDIR = $(DESTDIR)$(PREFIX)