Fixed link error when compiling from Qt Creator on Windows.

This commit is contained in:
Leonardo 2018-01-21 12:27:14 -08:00
parent 5c1cfa4bc9
commit 1ee596b7fc
2 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View file

@ -31,3 +31,4 @@ Makefile
library.bin library.bin
leocad_plugin_import.cpp leocad_plugin_import.cpp
uic_wrapper.bat uic_wrapper.bat
/tools/setup/*.exe

View file

@ -2,8 +2,8 @@ QT += core gui opengl network xml
TEMPLATE = app TEMPLATE = app
greaterThan(QT_MAJOR_VERSION, 4) { greaterThan(QT_MAJOR_VERSION, 4) {
QT *= printsupport QT *= printsupport
QT += concurrent QT += concurrent
} }
INCLUDEPATH += qt common INCLUDEPATH += qt common
@ -20,7 +20,7 @@ win32 {
QMAKE_LFLAGS += /INCREMENTAL QMAKE_LFLAGS += /INCREMENTAL
PRECOMPILED_SOURCE = common/lc_global.cpp PRECOMPILED_SOURCE = common/lc_global.cpp
RC_FILE = qt/leocad.rc RC_FILE = qt/leocad.rc
LIBS += -ladvapi32 -lshell32 -lopengl32 -lwininet LIBS += -ladvapi32 -lshell32 -lopengl32 -lwininet -luser32
} else { } else {
PRECOMPILED_HEADER = common/lc_global.h PRECOMPILED_HEADER = common/lc_global.h
LIBS += -lz LIBS += -lz