CC := g++
TARGET := QtChart
INCLUDE := -I./ `pkg-config --cflags opencv`
LIBS := -lpthread `pkg-config --libs opencv`
# C++语言编译参数
CXXFLAGS := -std=c++11 -g -Wall
# C预处理参数
# CPPFLAGS :=
OBJECTS := DaHuaGEVCam.o mainwidget.o callout.o chartview.o CubicSplineInterpolation.o BeamCalibration.o beamCore.o main.o
$(TARGET): $(OBJECTS)
$(CC) -o $(TARGET) $(OBJECTS) $(LIBS)
# $@表示所有目标集
%.o:%.cpp
$(CC) -c $(CXXFLAGS) $(INCLUDE) $< -o $@
.PHONY : clean
clean:
-rm -f $(OBJECTS) $(TARGET)
makefile 编译C++,opencv, qt5模板
猜你喜欢
转载自blog.csdn.net/vict_wang/article/details/81260799
今日推荐
周排行