fix lib export for tests
This commit is contained in:
parent
3d470bc634
commit
285d66591a
2
guh.pro
2
guh.pro
@ -30,7 +30,7 @@ doc.commands = cd $$top_srcdir/doc; qdoc config.qdocconf; cp images/logo.png htm
|
|||||||
licensecheck.commands = $$top_srcdir/tests/auto/checklicenseheaders.sh $$top_srcdir
|
licensecheck.commands = $$top_srcdir/tests/auto/checklicenseheaders.sh $$top_srcdir
|
||||||
|
|
||||||
test.depends = licensecheck
|
test.depends = licensecheck
|
||||||
test.commands = LD_LIBRARY_PATH=$$top_builddir/libguh make check
|
test.commands = LD_LIBRARY_PATH=$$top_builddir/libguh:$$top_builddir/tests/libguh-core make check
|
||||||
|
|
||||||
QMAKE_EXTRA_TARGETS += licensecheck doc test
|
QMAKE_EXTRA_TARGETS += licensecheck doc test
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@ INCLUDEPATH += $$top_srcdir/server/ \
|
|||||||
$$top_srcdir/tests/auto/
|
$$top_srcdir/tests/auto/
|
||||||
|
|
||||||
LIBS += -L$$top_builddir/libguh/ -lguh -L$$top_builddir/plugins/deviceplugins/mock/ \
|
LIBS += -L$$top_builddir/libguh/ -lguh -L$$top_builddir/plugins/deviceplugins/mock/ \
|
||||||
-L$$top_builddir/tests/libguh-core -lguh-core
|
-L$$top_builddir/tests/libguh-core/ -lguh-core
|
||||||
|
|
||||||
SOURCES += ../guhtestbase.cpp \
|
SOURCES += ../guhtestbase.cpp \
|
||||||
../mocktcpserver.cpp \
|
../mocktcpserver.cpp \
|
||||||
|
|||||||
@ -4,12 +4,16 @@ include(../../server/server.pri)
|
|||||||
TARGET = guh-core
|
TARGET = guh-core
|
||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
|
|
||||||
|
QT += sql
|
||||||
|
|
||||||
DEFINES += TESTING_ENABLED
|
DEFINES += TESTING_ENABLED
|
||||||
|
|
||||||
INCLUDEPATH += $$top_srcdir/server/ $$top_srcdir/server/jsonrpc $$top_srcdir/libguh $$top_srcdir/tests/auto/
|
INCLUDEPATH += $$top_srcdir/server/ \
|
||||||
LIBS += -L$$top_builddir/libguh/ -lguh
|
$$top_srcdir/server/jsonrpc \
|
||||||
|
$$top_srcdir/libguh \
|
||||||
|
$$top_srcdir/tests/auto/
|
||||||
|
|
||||||
QT += sql
|
LIBS += -L$$top_builddir/libguh/ -lguh
|
||||||
|
|
||||||
target.path = /usr/lib
|
target.path = /usr/lib
|
||||||
INSTALLS += target
|
INSTALLS += target
|
||||||
|
|||||||
Reference in New Issue
Block a user