We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dff8ec commit f1003efCopy full SHA for f1003ef
modules/Makefile
@@ -1,4 +1,6 @@
1
+ifndef USER_DEF_SYSTEMC_DIR
2
SYSTEMC?=$(HOME)/systemc-2.3.3
3
+endif # USER_DEF_SYSTEMC_DIR
4
TARGET?=test
5
6
# Compiler
@@ -17,6 +19,15 @@ BINDIR=./
17
19
INCDIR=-I. -I./include -I$(SYSTEMC)/include -Ibasic_protocol -I$(SYSTEMC)/include/tlm_core/tlm_2
18
20
LIBDIR=-L. -L$(SYSTEMC)/lib-linux64
21
22
+ifdef INCLUDE_OPENCV
23
+# Target
24
+LIBS+=-lopencv_imgcodecs -lopencv_core -lopencv_highgui -lopencv_imgproc
25
+
26
+# Source directories
27
+INCDIR+=-I/usr/local/include/opencv4
28
+LIBDIR+=-L/usr/local/lib
29
+endif # INCLUDE_OPENCV
30
31
SOURCES := $(wildcard $(SRCDIR)/*.cpp)
32
INCLUDES := $(wildcard $(INCDIR)/*.hpp)
33
OBJECTS := $(SOURCES:$(SRCDIR)/%.cpp=$(OBJDIR)/%.o)
0 commit comments