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