source: LinearAlgebra/src/unittests/Makefile.am@ 88bb6b

Last change on this file since 88bb6b was 0cfc27, checked in by Frederik Heber <heber@…>, 13 years ago

If no CPPUNIT is found, compilation of unit tests is disabled.

  • uses conditional CONDCPPUNIT.
  • Property mode set to 100644
File size: 2.9 KB
RevLine 
[fff54f]1# PLEASE adhere to the alphabetical ordering in this Makefile!
2# Also indentation by a single tab
3
[bf4b9f]4INCLUDES = -I$(top_srcdir)/src/LinearAlgebra
[fff54f]5
[f08ae7]6AM_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl
[29cbe9]7AM_CPPFLAGS = $(CPPUNIT_CFLAGS) $(BOOST_CPPFLAGS) ${CodePatterns_CFLAGS}
[fff54f]8
[0cfc27]9if CONDCPPUNIT
10
[fff54f]11TESTS = \
[78b593]12 LinearSystemOfEquationsUnitTest \
[f89024]13 LineUnitTest \
[fff54f]14 MatrixContentSymmetricUnitTest \
15 MatrixContentUnitTest \
[dfafe7]16 PlaneUnitTest \
[7a0340]17 RealSpaceMatrixUnitTest \
[dfafe7]18 VectorContentUnitTest \
[e23075]19 VectorUnitTest \
20 VectorSetUnitTest
[fff54f]21
22
23check_PROGRAMS = $(TESTS)
[fbbcde]24noinst_PROGRAMS = $(TESTS)
25
26if CONDECUT
27noinst_PROGRAMS += TestRunner
28endif
[fff54f]29
30GSLLIBS = \
[bf4b9f]31 ../LinearAlgebra/libLinearAlgebra.la \
[f08ae7]32 ${CodePatterns_LIBS}
[fff54f]33
[bf4b9f]34TESTSOURCES = \
35 LinearSystemOfEquationsUnitTest.cpp \
36 LineUnitTest.cpp \
37 MatrixContentSymmetricUnitTest.cpp \
38 MatrixContentUnitTest.cpp \
39 PlaneUnitTest.cpp \
[7a0340]40 RealSpaceMatrixUnitTest.cpp \
[bf4b9f]41 VectorContentUnitTest.cpp \
[e23075]42 VectorUnitTest.cpp \
43 VectorSetUnitTest.cpp
[bf4b9f]44
45TESTHEADERS = \
46 LinearSystemOfEquationsUnitTest.hpp \
47 LineUnitTest.hpp \
48 MatrixContentSymmetricUnitTest.hpp \
49 MatrixContentUnitTest.hpp \
50 PlaneUnitTest.hpp \
[7a0340]51 RealSpaceMatrixUnitTest.hpp \
[bf4b9f]52 VectorContentUnitTest.hpp \
[e23075]53 VectorUnitTest.hpp \
54 VectorSetUnitTest.hpp
[bf4b9f]55
56LinearSystemOfEquationsUnitTest_SOURCES = UnitTestMain.cpp \
[78b593]57 LinearSystemOfEquationsUnitTest.cpp \
58 LinearSystemOfEquationsUnitTest.hpp
59LinearSystemOfEquationsUnitTest_LDADD = ${GSLLIBS}
60
[bf4b9f]61LineUnitTest_SOURCES = UnitTestMain.cpp \
[f89024]62 LineUnitTest.cpp \
63 LineUnitTest.hpp
64LineUnitTest_LDADD = ${GSLLIBS}
65
[bf4b9f]66MatrixContentSymmetricUnitTest_SOURCES = UnitTestMain.cpp \
[fff54f]67 MatrixContentSymmetricUnitTest.cpp \
68 MatrixContentSymmetricUnitTest.hpp
69MatrixContentSymmetricUnitTest_LDADD = ${GSLLIBS}
70
[bf4b9f]71MatrixContentUnitTest_SOURCES = UnitTestMain.cpp \
[fff54f]72 MatrixContentUnitTest.cpp \
73 MatrixContentUnitTest.hpp
[29cbe9]74MatrixContentUnitTest_LDADD = ${GSLLIBS} \
75 $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS)
[fff54f]76
[bf4b9f]77PlaneUnitTest_SOURCES = UnitTestMain.cpp \
[5bc8229]78 PlaneUnitTest.cpp \
79 PlaneUnitTest.hpp
80PlaneUnitTest_LDADD = ${GSLLIBS}
81
[7a0340]82RealSpaceMatrixUnitTest_SOURCES = UnitTestMain.cpp \
83 RealSpaceMatrixUnitTest.cpp \
84 RealSpaceMatrixUnitTest.hpp
[c2e567]85RealSpaceMatrixUnitTest_LDADD = ${GSLLIBS} \
86 $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS)
[7a0340]87
[bf4b9f]88VectorContentUnitTest_SOURCES = UnitTestMain.cpp \
[dfafe7]89 VectorContentUnitTest.cpp \
90 VectorContentUnitTest.hpp
[29cbe9]91VectorContentUnitTest_LDADD = ${GSLLIBS} \
92 $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS)
[dfafe7]93
[bf4b9f]94VectorUnitTest_SOURCES = UnitTestMain.cpp \
[dfafe7]95 VectorUnitTest.cpp \
96 VectorUnitTest.hpp
97VectorUnitTest_LDADD = ${GSLLIBS}
98
[e23075]99VectorSetUnitTest_SOURCES = UnitTestMain.cpp \
100 VectorSetUnitTest.cpp \
101 VectorSetUnitTest.hpp
102VectorSetUnitTest_LDADD = ${GSLLIBS}
103
[fff54f]104
[bf4b9f]105TestRunner_SOURCES = TestRunnerMain.cpp $(TESTSOURCES) $(TESTHEADERS)
[7bace8]106TestRunner_LDADD = ${GSLLIBS} \
107 $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS)
[bf4b9f]108
[fff54f]109#AUTOMAKE_OPTIONS = parallel-tests
[0cfc27]110
111endif
Note: See TracBrowser for help on using the repository browser.