Skip to content

Commit

Permalink
Makefile cleanups in prepration for implementing more that one test unit
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5215 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Apr 8, 2006
1 parent b11a4c3 commit ed9f640
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions tests/src/core/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,28 @@

bin_PROGRAMS = testqgsapplication

#
# Define some global variables that will be used for building each test
#

GLOBALLDADD = $(QT_LDADD) $(PG_LIB) $(GDAL_LDADD) -lproj ../../../src/core/libqgis_core.la ../../../src/gui/libqgis_gui.la
GLOBALCXXFLAGS = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(GDAL_CFLAGS) $(QT_CXXFLAGS) $(PG_INC) -I../../../src/core

#
# Instruction for running the qt4 meta object compiler
#

%.moc.cpp: %.h
$(MOC) -o $@ $<

#
# Specify the compilation files for each unit test now
#

testqgsapplication_MOC = testqgsapplication.moc.cpp
testqgsapplication_SOURCES = testqgsapplication.cpp

testqgsapplication_LDADD = $(QT_LDADD) $(PG_LIB) $(GDAL_LDADD) -lproj ../../../src/core/libqgis_core.la ../../../src/gui/libqgis_gui.la
testqgsapplication_CXXFLAGS = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(GDAL_CFLAGS) $(QT_CXXFLAGS) $(PG_INC) -I../../../src/core
testqgsapplication_LDADD = $(GLOBALLDADD)
testqgsapplication_CXXFLAGS = $(GLOBALCXXFLAGS)

BUILT_SOURCES = $(testqgsapplication_MOC)

Expand Down

0 comments on commit ed9f640

Please sign in to comment.