Last active
July 22, 2019 17:36
-
-
Save justanotherminh/e2b6c9312d47b91b2eef898052b4ed55 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Library Paths | |
LIB_OPENCV4_PATH=/usr/local/Cellar/opencv/4.1.0_2/lib | |
LIB_RS2_PATH=/Users/nguyenluongminh/librealsense/build | |
#Include Paths | |
INCLUDE_OPENCV4_PATH=/usr/local/Cellar/opencv/4.1.0_2/include/opencv4 | |
INCLUDE_RS2_PATH =/Users/nguyenluongminh/librealsense/include/librealsense2 | |
INCLUDE_IMGUI_PATH =/Users/nguyenluongminh/librealsense/build | |
#Linker | |
LIBS=realsense2 opencv_core opencv_highgui opencv_imgcodecs opencv_imgproc opencv_photo opencv_video opencv_videoio$ | |
LINK_FLAGS=$(foreach d, $(LIBS), -l$d) | |
LIB_DIR_FLAGS=-L$(LIB_OPENCV4_PATH) -L$(LIB_RS2_PATH) | |
#Include | |
INC=$(INCLUDE_OPENCV4_PATH) $(INCLUDE_RS2_PATH) $(INCLUDE_IMGUI_PATH) | |
INC_FLAGS=$(foreach d, $(INC), -I$d) | |
#Compilation | |
GCC=g++ -std=c++11 -g | |
SRCS= Descriptors.cpp main.cpp Segment.cpp Compute.cpp detect_tree_main.cpp pointcloud_main.cpp realtime_tagging_main.cpp videostream_main.cpp FrameBufferStack.cpp RecordingTriggerROI.cpp | |
EXEC=DepthCamProcessing | |
GCC_FLAGS= | |
USER_FLAGS= -framework OpenGL | |
#The Business | |
$(EXEC): $(OBJS) | |
$(GCC) $(GCC_FLAGS) $(USER_FLAGS) $(LIB_DIR_FLAGS) $(INC_FLAGS) $(LINK_FLAGS) $(OBJS) $(SRCS) -lsndfile -o $(EXEC) | |
#Make builtin .c.o | |
.c.o: | |
$(GCC) $(GCC_FLAGS) $(USER_FLAGS)-c $*.c | |
#Clean | |
clean: | |
rm -f $(OBJS) $(EXEC) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment