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