1 | # PLEASE adhere to the alphabetical ordering in this Makefile!
|
---|
2 | # Also indentation by a single tab
|
---|
3 |
|
---|
4 | check_PROGRAMS =
|
---|
5 | noinst_PROGRAMS =
|
---|
6 | TESTS =
|
---|
7 |
|
---|
8 | include ../../src/Actions/unittests/Makefile.am
|
---|
9 | include ../../src/Descriptors/unittests/Makefile.am
|
---|
10 | include ../../src/Fragmentation/unittests/Makefile.am
|
---|
11 | include ../../src/Parser/unittests/Makefile.am
|
---|
12 | include ../../src/RandomNumbers/unittests/Makefile.am
|
---|
13 | include ../../src/Shapes/unittests/Makefile.am
|
---|
14 | include ../../src/UIElements/CommandLineUI/unittests/Makefile.am
|
---|
15 | include ../../src/UIElements/Menu/unittests/Makefile.am
|
---|
16 |
|
---|
17 | INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/LinearAlgebra/src
|
---|
18 |
|
---|
19 | AM_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl
|
---|
20 | AM_CPPFLAGS = ${BOOST_CPPFLAGS} $(CPPUNIT_CFLAGS) ${CodePatterns_CFLAGS}
|
---|
21 |
|
---|
22 | GENERALTESTS = \
|
---|
23 | AnalysisBondsUnitTest \
|
---|
24 | AnalysisCorrelationToPointUnitTest \
|
---|
25 | AnalysisCorrelationToSurfaceUnitTest \
|
---|
26 | AnalysisPairCorrelationUnitTest \
|
---|
27 | BondGraphUnitTest \
|
---|
28 | BoxUnitTest \
|
---|
29 | CountBondsUnitTest \
|
---|
30 | ElementUnitTest \
|
---|
31 | FormulaUnittest \
|
---|
32 | LinkedCellUnitTest \
|
---|
33 | ListOfBondsUnitTest \
|
---|
34 | PeriodentafelUnitTest \
|
---|
35 | TesselationUnitTest \
|
---|
36 | Tesselation_BoundaryTriangleUnitTest \
|
---|
37 | Tesselation_InOutsideUnitTest \
|
---|
38 | WorldTimeUnitTest
|
---|
39 |
|
---|
40 | # these ones are checked
|
---|
41 | TESTS += $(GENERALTESTS)
|
---|
42 | # these ones are built for checking only
|
---|
43 | check_PROGRAMS += $(GENERALTESTS)
|
---|
44 | # ... and not installed
|
---|
45 | noinst_PROGRAMS += $(GENERALTESTS) TestRunner
|
---|
46 |
|
---|
47 | BOOST_LIB = \
|
---|
48 | $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LIBS) \
|
---|
49 | $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_FILESYSTEM_LIBS) \
|
---|
50 | $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS)
|
---|
51 |
|
---|
52 | ALLLIBS = \
|
---|
53 | ../libMolecuilderUI.la \
|
---|
54 | ../libMolecuilder.la \
|
---|
55 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
---|
56 | ${CodePatterns_LIBS} \
|
---|
57 | $(BOOST_LIB)
|
---|
58 |
|
---|
59 | TESTSOURCES = \
|
---|
60 | ${ACTIONTESTSSOURCES} \
|
---|
61 | ${DESCRIPTORTESTSSOURCES} \
|
---|
62 | ${FRAGMENTATIONTESTSSOURCES} \
|
---|
63 | ${LINEARALGEBRATESTSSOURCES} \
|
---|
64 | ${PARSERTESTSSOURCES} \
|
---|
65 | ${RANDOMNUMBERTESTSSOURCES} \
|
---|
66 | ${SHAPETESTSSOURCES} \
|
---|
67 | $(UIELEMENTSCOMMANDLINEPARSERTESTSSOURCES) \
|
---|
68 | ${UIELEMENTSMENUTESTSSOURCES} \
|
---|
69 | AnalysisBondsUnitTest.cpp \
|
---|
70 | AnalysisCorrelationToPointUnitTest.cpp \
|
---|
71 | AnalysisCorrelationToSurfaceUnitTest.cpp \
|
---|
72 | AnalysisPairCorrelationUnitTest.cpp \
|
---|
73 | BondGraphUnitTest.cpp \
|
---|
74 | BoxUnitTest.cpp \
|
---|
75 | CountBondsUnitTest.cpp \
|
---|
76 | ElementUnitTest.cpp \
|
---|
77 | FormulaUnitTest.cpp \
|
---|
78 | LinkedCellUnitTest.cpp \
|
---|
79 | ListOfBondsUnitTest.cpp \
|
---|
80 | PeriodentafelUnitTest.cpp \
|
---|
81 | TesselationUnitTest.cpp \
|
---|
82 | Tesselation_BoundaryTriangleUnitTest.cpp \
|
---|
83 | Tesselation_InsideOutsideUnitTest.cpp \
|
---|
84 | WorldTimeUnitTest.cpp
|
---|
85 |
|
---|
86 | TESTHEADERS = \
|
---|
87 | ${ACTIONTESTSHEADERS} \
|
---|
88 | ${DESCRIPTORTESTSHEADERS} \
|
---|
89 | ${FRAGMENTATIONTESTSHEADERS} \
|
---|
90 | ${LINEARALGEBRATESTSHEADERS} \
|
---|
91 | ${PARSERTESTSHEADERS} \
|
---|
92 | ${RANDOMNUMBERTESTSHEADERS} \
|
---|
93 | ${SHAPETESTSHEADERS} \
|
---|
94 | $(UIELEMENTSCOMMANDLINEPARSERTESTSHEADERS) \
|
---|
95 | ${UIELEMENTSMENUTESTSHEADERS} \
|
---|
96 | AnalysisBondsUnitTest.hpp \
|
---|
97 | AnalysisCorrelationToPointUnitTest.hpp \
|
---|
98 | AnalysisCorrelationToSurfaceUnitTest.hpp \
|
---|
99 | AnalysisPairCorrelationUnitTest.hpp \
|
---|
100 | BondGraphUnitTest.hpp \
|
---|
101 | BoxUnitTest.hpp \
|
---|
102 | CountBondsUnitTest.hpp \
|
---|
103 | ElementUnitTest.hpp \
|
---|
104 | FormulaUnitTest.hpp \
|
---|
105 | LinkedCellUnitTest.hpp \
|
---|
106 | ListOfBondsUnitTest.hpp \
|
---|
107 | PeriodentafelUnitTest.hpp \
|
---|
108 | TesselationUnitTest.hpp \
|
---|
109 | Tesselation_BoundaryTriangleUnitTest.hpp \
|
---|
110 | Tesselation_InsideOutsideUnitTest.hpp \
|
---|
111 | WorldTimeUnitTest.hpp
|
---|
112 |
|
---|
113 |
|
---|
114 | AnalysisBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
115 | AnalysisBondsUnitTest.cpp \
|
---|
116 | AnalysisBondsUnitTest.hpp
|
---|
117 | AnalysisBondsUnitTest_LDADD = ${ALLLIBS}
|
---|
118 |
|
---|
119 | AnalysisCorrelationToPointUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
120 | AnalysisCorrelationToPointUnitTest.cpp \
|
---|
121 | AnalysisCorrelationToPointUnitTest.hpp
|
---|
122 | AnalysisCorrelationToPointUnitTest_LDADD = ${ALLLIBS}
|
---|
123 |
|
---|
124 | AnalysisCorrelationToSurfaceUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
125 | AnalysisCorrelationToSurfaceUnitTest.cpp \
|
---|
126 | AnalysisCorrelationToSurfaceUnitTest.hpp
|
---|
127 | AnalysisCorrelationToSurfaceUnitTest_LDADD = ${ALLLIBS}
|
---|
128 |
|
---|
129 | AnalysisPairCorrelationUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
130 | AnalysisPairCorrelationUnitTest.cpp \
|
---|
131 | AnalysisPairCorrelationUnitTest.hpp
|
---|
132 | AnalysisPairCorrelationUnitTest_LDADD = ${ALLLIBS}
|
---|
133 |
|
---|
134 | BondGraphUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
135 | BondGraphUnitTest.cpp \
|
---|
136 | BondGraphUnitTest.hpp
|
---|
137 | BondGraphUnitTest_LDADD = ${ALLLIBS}
|
---|
138 |
|
---|
139 | BoxUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
140 | BoxUnitTest.cpp \
|
---|
141 | BoxUnitTest.hpp
|
---|
142 | BoxUnitTest_LDADD = ${ALLLIBS}
|
---|
143 |
|
---|
144 | CountBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
145 | CountBondsUnitTest.cpp \
|
---|
146 | CountBondsUnitTest.hpp
|
---|
147 | CountBondsUnitTest_LDADD = ${ALLLIBS}
|
---|
148 |
|
---|
149 | ElementUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
150 | ElementUnitTest.cpp \
|
---|
151 | ../element.cpp \
|
---|
152 | ElementUnitTest.hpp \
|
---|
153 | ../element.hpp
|
---|
154 | ElementUnitTest_LDADD = \
|
---|
155 | $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS)
|
---|
156 |
|
---|
157 | FormulaUnittest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
158 | FormulaUnitTest.cpp \
|
---|
159 | FormulaUnitTest.hpp
|
---|
160 | FormulaUnittest_LDADD = ${ALLLIBS}
|
---|
161 |
|
---|
162 | LinkedCellUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
163 | LinkedCellUnitTest.cpp \
|
---|
164 | LinkedCellUnitTest.hpp
|
---|
165 | LinkedCellUnitTest_LDADD = ${ALLLIBS}
|
---|
166 |
|
---|
167 | ListOfBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
168 | ListOfBondsUnitTest.cpp \
|
---|
169 | ListOfBondsUnitTest.hpp
|
---|
170 | ListOfBondsUnitTest_LDADD = ${ALLLIBS}
|
---|
171 |
|
---|
172 | PeriodentafelUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
173 | PeriodentafelUnitTest.cpp \
|
---|
174 | PeriodentafelUnitTest.hpp
|
---|
175 | PeriodentafelUnitTest_LDADD = ${ALLLIBS}
|
---|
176 |
|
---|
177 | TesselationUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
178 | TesselationUnitTest.cpp \
|
---|
179 | TesselationUnitTest.hpp
|
---|
180 | TesselationUnitTest_LDADD = ${ALLLIBS}
|
---|
181 |
|
---|
182 | Tesselation_BoundaryTriangleUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
183 | Tesselation_BoundaryTriangleUnitTest.cpp \
|
---|
184 | Tesselation_BoundaryTriangleUnitTest.hpp
|
---|
185 | Tesselation_BoundaryTriangleUnitTest_LDADD = ${ALLLIBS}
|
---|
186 |
|
---|
187 | Tesselation_InOutsideUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
188 | Tesselation_InsideOutsideUnitTest.cpp \
|
---|
189 | Tesselation_InsideOutsideUnitTest.hpp
|
---|
190 | Tesselation_InOutsideUnitTest_LDADD = ${ALLLIBS}
|
---|
191 |
|
---|
192 | WorldTimeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
193 | WorldTimeUnitTest.cpp \
|
---|
194 | WorldTimeUnitTest.hpp \
|
---|
195 | ../WorldTime.cpp \
|
---|
196 | ../WorldTime.hpp
|
---|
197 | WorldTimeUnitTest_LDADD = ${BOOST_LIB}
|
---|
198 |
|
---|
199 |
|
---|
200 | TestRunner_SOURCES = TestRunnerMain.cpp $(TESTSOURCES) $(TESTHEADERS)
|
---|
201 | TestRunner_LDADD = ${UILIBS} ${ALLLIBS}
|
---|
202 |
|
---|
203 | #AUTOMAKE_OPTIONS = parallel-tests
|
---|