Introduced new library for pglab code which I want to unit test.

Not everything can go into core because that would result in circular dependencies between core and pgsql.
This commit is contained in:
eelke 2017-12-13 18:04:10 +01:00
parent b8505ce451
commit ad9ed1b698
10 changed files with 98 additions and 21 deletions

View file

@ -36,9 +36,7 @@ SOURCES += my_boost_assert_handler.cpp \
BackupFormatModel.cpp \
QueuedBackgroundTask.cpp \
ExplainTreeModelItem.cpp \
jsoncpp.cpp \
ParamListJson.cpp \
ParamListModel.cpp
jsoncpp.cpp
HEADERS += PasswordManager.h \
SqlLexer.h \
@ -48,26 +46,9 @@ HEADERS += PasswordManager.h \
QueuedBackgroundTask.h \
Expected.h \
ExplainTreeModelItem.h \
ParamListJson.h \
ParamListModel.h \
json/json.h
unix {
target.path = /usr/lib
INSTALLS += target
}
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../pgsql/release/ -lpgsql
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../pgsql/debug/ -lpgsql
else:unix:!macx: LIBS += -L$$OUT_PWD/../pgsql/ -lpgsql
INCLUDEPATH += $$PWD/../pgsql
DEPENDPATH += $$PWD/../pgsql
win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../pgsql/release/libpgsql.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../pgsql/debug/libpgsql.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../pgsql/release/pgsql.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../pgsql/debug/pgsql.lib
else:unix:!macx: PRE_TARGETDEPS += $$OUT_PWD/../pgsql/libpgsql.a