Skip to content

Commit 8886715

Browse files
committed
Fixing general Makefile and moving OpenCV to RGB2Grayscale module
1 parent fb568e5 commit 8886715

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

modules/rgb2gray/Makefile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
# Adding stb lib for image handling
2-
INCDIR_STB=lib/stb
3-
INCLUDES_STB := $(wildcard $(INCDIR_STB)/*.h)
4-
51
# Include common Makefile
62
include ../Makefile
73

8-
# Include stb lib for compilation
9-
INCLUDES += INCLUDES_STB
4+
ifdef INCLUDE_OPENCV
5+
# Target
6+
LIBS+=-lopencv_imgcodecs -lopencv_core -lopencv_highgui -lopencv_imgproc
7+
8+
# Source directories
9+
INCDIR+=-I$(OPENCV_H_DIR)
10+
LIBDIR+=-L$(OPENCV_SO_DIR)
11+
endif # INCLUDE_OPENCV
1012

1113
# Defining preprocessor directive for debug
1214
ifdef IPS_DEBUG_EN

0 commit comments

Comments
 (0)