Files

53 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

#QT += core gui
#greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++17
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
INCLUDEPATH += \
$$PWD/../3rdParty/GLFW \
$$PWD/../3rdParty/GLEW \
SOURCES += \
$$PWD/OpenGLView.cpp \
HEADERS += \
$$PWD/OpenGLView.h \
win32{
contains(DEFINES,WIN64){
LIBS += -lOpengl32 -luser32
#
LIBS += -L$$PWD/../3rdParty/GLFW/lib/x64/lib-vc2015/ -lglfw3dll
INCLUDEPATH += $$PWD/../3rdParty/GLFW/lib/x64/lib-vc2015
DEPENDPATH += $$PWD/../3rdParty/GLFW/lib/x64/lib-vc2015
#
LIBS += -L$$PWD/../3rdParty/GLEW/lib/Release/x64/ -lglew32
#INCLUDEPATH += $$PWD/../3rdParty/GLEW/bin/Release/x64/
#DEPENDPATH += $$PWD/../3rdParty/GLEW/bin/Release/x64/
}else{
LIBS += -lOpengl32 -luser32
#
LIBS += -L$$PWD/../3rdParty/GLFW/lib/x86/lib-vc2015/ -lglfw3dll
INCLUDEPATH += $$PWD/../3rdParty/GLFW/lib/x86/lib-vc2015
DEPENDPATH += $$PWD/../3rdParty/GLFW/lib/x86/lib-vc2015
#
LIBS += -L$$PWD/../3rdParty/GLEW/lib/Release/x86/ -lglew32
#INCLUDEPATH += $$PWD/../3rdParty/GLEW/bin/Release/x86/
#DEPENDPATH += $$PWD/../3rdParty/GLEW/bin/Release/x86/
}
}