Skip to content

Commit

Permalink
Fixed the map reader test
Browse files Browse the repository at this point in the history
Not that useful, but at least it should compile. Fortunately it's still
passing. :)
  • Loading branch information
bjorn committed Jul 6, 2010
1 parent a34a039 commit 91e0e15
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions tests/test_tmxmapreader.pro
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
include(../src/libtiled/libtiled.pri)

CONFIG += qtestlib
TEMPLATE = app
DEPENDPATH += .
INCLUDEPATH += . \
../src
../src/tiled

macx {
LIBS += -L$$OUT_PWD/../bin/Tiled.app/Contents/Frameworks
} else {
LIBS += -L$$OUT_PWD/../lib
}

!win32:!macx {
QMAKE_RPATHDIR += \$\$ORIGIN/../lib

# It is not possible to use ORIGIN in QMAKE_RPATHDIR, so a bit manually
QMAKE_LFLAGS += -Wl,-z,origin \'-Wl,-rpath,$$join(QMAKE_RPATHDIR, ":")\'
QMAKE_RPATHDIR =
}

# Input
SOURCES += test_tmxmapreader.cpp

# Tiled sources to include in the test binary
SOURCES += ../src/map.cpp \
../src/mapobject.cpp \
../src/layer.cpp \
../src/tilelayer.cpp \
../src/objectgroup.cpp \
../src/tilesetmanager.cpp \
../src/tileset.cpp \
../src/compression.cpp \
../src/tmxmapreader.cpp
SOURCES += ../src/tiled/tilesetmanager.cpp \
../src/tiled/compression.cpp \
../src/tiled/tmxmapreader.cpp
HEADERS += ../src/tiled/tilesetmanager.h

0 comments on commit 91e0e15

Please sign in to comment.