diff --git a/restruct.pro b/restruct.pro --- a/restruct.pro +++ b/restruct.pro @@ -1,51 +1,48 @@ ###################################################################### # Project started 11.01.2008 at 13:10 ###################################################################### QT += core concurrent TEMPLATE = app TARGET = restruct CONFIG += c++14 +# The following define makes your compiler emit warnings if you use +# any feature of Qt which as been marked deprecated (the exact warnings +# depend on your compiler). Please consult the documentation of the +# deprecated API in order to know how to port your code away from it. +DEFINES += QT_DEPRECATED_WARNINGS + isEmpty(INCLUDEPATH): INCLUDEPATH = $$(HOME)/src/include isEmpty(LIBS): LIBS = -L$$(HOME)/src/lib INCLUDEPATH += src -isEmpty(LIBPQ_INC) { - unix: PREFIX = /usr - win32:PREFIX = /build - INCLUDEPATH += $${PREFIX}/include/postgresql $${PREFIX}/include/postgresql/internal -} -else { - INCLUDEPATH += $${LIBPQ_INC} $${LIBPQ_INC}/internal - win32: INCLUDEPATH += $${LIBPQ_INC}/server/port/win32 -} - -LIBS += -lktools -lsqlproc -lpq +LIBS += -lktools -lsqlproc +contains(DEFINES,SQLPROC_STATIC):LIBS += -lpq SOURCES += src/updater.cpp \ src/exitcode.cpp HEADERS += \ src/updater.h \ src/psettings.h \ src/exitcode.h RESOURCES += resource/project.qrc win32 { QT += gui widgets SOURCES += src/main_win.cpp src/mainwindow.cpp HEADERS += src/mainwindow.h RC_FILE = resource/project.rc - LIBS += -luuid -loleaut32 -lgdi32 -luser32 + contains(DEFINES,SQLPROC_STATIC):LIBS += -luuid -loleaut32 } unix { CONFIG += console SOURCES += src/main_lin.cpp src/mainconsole.cpp HEADERS += src/mainconsole.h } target.path = /bin # install location INSTALLS += target