Revision 49:a6a71d1c7eb7
| common/common.pro | ||
|---|---|---|
| 1 | 1 |
TEMPLATE = lib |
| 2 | 2 |
TARGET = |
| 3 | 3 |
|
| 4 |
load(../../all.prf) |
|
| 5 |
|
|
| 6 |
DEPENDPATH += ../../svcore |
|
| 7 |
INCLUDEPATH += ../../svcore |
|
| 8 |
|
|
| 9 | 4 |
CONFIG += staticlib |
| 10 | 5 |
|
| 11 | 6 |
HEADERS += EditDistance.h Objects.h Matcher.h TypeRegistrar.h FeatureFileIndex.h |
| 12 | 7 |
SOURCES += EditDistance.cpp Objects.cpp Matcher.cpp TypeRegistrar.cpp FeatureFileIndex.cpp |
| 13 | 8 |
|
| 9 |
exists(./platform.pri) {
|
|
| 10 |
include(./platform.pri) |
|
| 11 |
} |
|
| 12 |
!exists(./platform.pri) {
|
|
| 13 |
exists(../platform.pri) {
|
|
| 14 |
include(../platform.pri) |
|
| 15 |
} |
|
| 16 |
} |
|
| 17 |
|
|
| testapp/Loader.cpp | ||
|---|---|---|
| 66 | 66 |
QObjectList objects; |
| 67 | 67 |
try {
|
| 68 | 68 |
objects = loader->loadAll(); |
| 69 |
// std::cerr << "Loaded " << objects.size() << " objects" << std::endl; |
|
| 69 | 70 |
} catch (const std::exception &e) {
|
| 70 | 71 |
std::cerr << "mapping failed: " << e.what() << std::endl; |
| 71 | 72 |
return 1; |
| testapp/testapp.pro | ||
|---|---|---|
| 1 | 1 |
TEMPLATE = app |
| 2 | 2 |
TARGET = testapp |
| 3 | 3 |
|
| 4 |
load(../../all.prf)
|
|
| 4 |
QT += network
|
|
| 5 | 5 |
|
| 6 | 6 |
SOURCES += Loader.cpp |
| 7 | 7 |
|
| ... | ... | |
| 9 | 9 |
|
| 10 | 10 |
INCLUDEPATH += ../common |
| 11 | 11 |
|
| 12 |
DEPENDPATH += ../../svcore |
|
| 13 |
INCLUDEPATH += ../../svcore |
|
| 14 |
|
|
| 15 | 12 |
PRE_TARGETDEPS += ../common/libcommon.a |
| 16 | 13 |
|
| 17 |
LIBS += ../common/libcommon.a -L../../svcore -lsvcore ../../../dataquay/libdataquay.a
|
|
| 14 |
LIBS += ../common/libcommon.a -lsvcore -ldataquay -lrdf
|
|
| 18 | 15 |
|
| 16 |
exists(./platform.pri) {
|
|
| 17 |
include(./platform.pri) |
|
| 18 |
} |
|
| 19 |
!exists(./platform.pri) {
|
|
| 20 |
exists(../platform.pri) {
|
|
| 21 |
include(../platform.pri) |
|
| 22 |
} |
|
| 23 |
} |
|
| 24 |
|
|
Also available in: Unified diff