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 | XFAIL_TESTS =
|
---|
8 | MOSTLYCLEANFILES =
|
---|
9 |
|
---|
10 | if CONDCPPUNIT
|
---|
11 |
|
---|
12 | include ../../src/Actions/unittests/Makefile.am
|
---|
13 | include ../../src/Analysis/unittests/Makefile.am
|
---|
14 | include ../../src/Atom/unittests/Makefile.am
|
---|
15 | include ../../src/Descriptors/unittests/Makefile.am
|
---|
16 | include ../../src/Element/unittests/Makefile.am
|
---|
17 | include ../../src/Filling/unittests/Makefile.am
|
---|
18 | include ../../src/FunctionApproximation/unittests/Makefile.am
|
---|
19 | include ../../src/Fragmentation/unittests/Makefile.am
|
---|
20 | include ../../src/Fragmentation/Exporters/unittests/Makefile.am
|
---|
21 | include ../../src/Fragmentation/Homology/unittests/Makefile.am
|
---|
22 | include ../../src/Fragmentation/Summation/unittests/Makefile.am
|
---|
23 | include ../../src/Fragmentation/Summation/Containers/unittests/Makefile.am
|
---|
24 | include ../../src/Fragmentation/Summation/SetValues/unittests/Makefile.am
|
---|
25 | include ../../src/Graph/unittests/Makefile.am
|
---|
26 |
|
---|
27 | if CONDJOBMARKET
|
---|
28 | include ../../src/Jobs/unittests/Makefile.am
|
---|
29 | endif
|
---|
30 |
|
---|
31 | include ../../src/LinkedCell/unittests/Makefile.am
|
---|
32 | include ../../src/Parameters/unittests/Makefile.am
|
---|
33 | include ../../src/Parser/unittests/Makefile.am
|
---|
34 | include ../../src/Potentials/unittests/Makefile.am
|
---|
35 | include ../../src/Potentials/Specifics/unittests/Makefile.am
|
---|
36 | include ../../src/RandomNumbers/unittests/Makefile.am
|
---|
37 | include ../../src/Shapes/unittests/Makefile.am
|
---|
38 | include ../../src/Tesselation/unittests/Makefile.am
|
---|
39 | include ../../src/UIElements/CommandLineUI/unittests/Makefile.am
|
---|
40 | include ../../src/UIElements/Menu/unittests/Makefile.am
|
---|
41 |
|
---|
42 | INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/LinearAlgebra/src
|
---|
43 |
|
---|
44 | AM_LDFLAGS = \
|
---|
45 | ${CodePatterns_LIBS} \
|
---|
46 | $(CPPUNIT_LIBS) \
|
---|
47 | -ldl
|
---|
48 | AM_CPPFLAGS = ${BOOST_CPPFLAGS} $(CPPUNIT_CFLAGS) ${CodePatterns_CFLAGS}
|
---|
49 |
|
---|
50 | GENERALTESTS = \
|
---|
51 | AtomIdSetUnitTest \
|
---|
52 | BoxUnitTest \
|
---|
53 | Box_BoundaryConditionsTest \
|
---|
54 | FormulaUnittest \
|
---|
55 | ListOfBondsUnitTest \
|
---|
56 | MoleculeUnitTest \
|
---|
57 | WorldTimeUnitTest
|
---|
58 |
|
---|
59 | # these ones are checked
|
---|
60 | TESTS += $(GENERALTESTS)
|
---|
61 | # these ones are built for checking only
|
---|
62 | check_PROGRAMS += $(GENERALTESTS)
|
---|
63 | # ... and not installed
|
---|
64 | noinst_PROGRAMS += $(GENERALTESTS)
|
---|
65 |
|
---|
66 | if CONDECUT
|
---|
67 | noinst_PROGRAMS += TestRunner
|
---|
68 | endif
|
---|
69 |
|
---|
70 |
|
---|
71 | BOOST_LIB = \
|
---|
72 | $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LIBS) \
|
---|
73 | $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_FILESYSTEM_LIBS) \
|
---|
74 | $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS) \
|
---|
75 | $(BOOST_SYSTEM_LDFLAGS) $(BOOST_SYSTEM_LIBS) \
|
---|
76 | $(BOOST_THREAD_LDFLAGS) $(BOOST_THREAD_LIBS)
|
---|
77 |
|
---|
78 | GENERALLIBS = \
|
---|
79 | ../libMolecuilder.la \
|
---|
80 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
---|
81 | ${CodePatterns_LIBS} \
|
---|
82 | $(BOOST_LIB)
|
---|
83 |
|
---|
84 | ALLLIBS = \
|
---|
85 | ../libMolecuilderUI.la
|
---|
86 | if CONDJOBMARKET
|
---|
87 | ALLLIBS += \
|
---|
88 | ../libMolecuilderJobs.la
|
---|
89 | endif
|
---|
90 | ALLLIBS += \
|
---|
91 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
---|
92 | ${CodePatterns_LIBS} \
|
---|
93 | $(BOOST_LIB)
|
---|
94 |
|
---|
95 | TESTSOURCES = \
|
---|
96 | ${ACTIONTESTSSOURCES} \
|
---|
97 | ${ANALYSISTESTSSOURCES} \
|
---|
98 | ${DESCRIPTORTESTSSOURCES} \
|
---|
99 | ${ELEMENTTESTSSOURCES} \
|
---|
100 | ${FILLINGTESTSSOURCES} \
|
---|
101 | ${FRAGMENTATIONTESTSSOURCES} \
|
---|
102 | ${GRAPHTESTSSOURCES} \
|
---|
103 | ${LINKEDCELLTESTSSOURCES} \
|
---|
104 | ${LINEARALGEBRATESTSSOURCES} \
|
---|
105 | ${PARAMETERTESTSSOURCES} \
|
---|
106 | ${PARSERTESTSSOURCES} \
|
---|
107 | ${RANDOMNUMBERTESTSSOURCES} \
|
---|
108 | ${SHAPETESTSSOURCES} \
|
---|
109 | ${TESSELATIONTESTSSOURCES} \
|
---|
110 | $(UIELEMENTSCOMMANDLINEPARSERTESTSSOURCES) \
|
---|
111 | ${UIELEMENTSMENUTESTSSOURCES} \
|
---|
112 | stubs/ObserverStub.cpp \
|
---|
113 | AtomIdSetUnitTest.cpp \
|
---|
114 | BoxUnitTest.cpp \
|
---|
115 | Box_BoundaryConditionsUnitTest.cpp \
|
---|
116 | FormulaUnitTest.cpp \
|
---|
117 | ListOfBondsUnitTest.cpp \
|
---|
118 | MoleculeUnitTest.cpp \
|
---|
119 | WorldTimeUnitTest.cpp
|
---|
120 |
|
---|
121 | TESTHEADERS = \
|
---|
122 | ${ACTIONTESTSHEADERS} \
|
---|
123 | ${ANALYSISTESTSHEADERS} \
|
---|
124 | ${DESCRIPTORTESTSHEADERS} \
|
---|
125 | ${ELEMENTTESTSHEADERS} \
|
---|
126 | ${FILLINGTESTSHEADERS} \
|
---|
127 | ${FRAGMENTATIONTESTSHEADERS} \
|
---|
128 | ${GRAPHTESTSHEADERS} \
|
---|
129 | ${LINKEDCELLTESTHEADERS} \
|
---|
130 | ${LINEARALGEBRATESTSHEADERS} \
|
---|
131 | ${PARAMETERTESTSHEADERS} \
|
---|
132 | ${PARSERTESTSHEADERS} \
|
---|
133 | ${RANDOMNUMBERTESTSHEADERS} \
|
---|
134 | ${SHAPETESTSHEADERS} \
|
---|
135 | ${TESSELATIONTESTSHEADERS} \
|
---|
136 | $(UIELEMENTSCOMMANDLINEPARSERTESTSHEADERS) \
|
---|
137 | ${UIELEMENTSMENUTESTSHEADERS} \
|
---|
138 | stubs/ObserverStub.hpp \
|
---|
139 | AtomIdSetUnitTest.hpp \
|
---|
140 | BoxUnitTest.hpp \
|
---|
141 | Box_BoundaryConditionsUnitTest.hpp \
|
---|
142 | FormulaUnitTest.hpp \
|
---|
143 | ListOfBondsUnitTest.hpp \
|
---|
144 | MoleculeUnitTest.hpp \
|
---|
145 | WorldTimeUnitTest.hpp
|
---|
146 |
|
---|
147 |
|
---|
148 | BoxUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
149 | BoxUnitTest.cpp \
|
---|
150 | BoxUnitTest.hpp \
|
---|
151 | stubs/ObserverStub.cpp \
|
---|
152 | stubs/ObserverStub.hpp \
|
---|
153 | ../Shapes/unittests/stubs/ApproximateShapeAreaStub.cpp \
|
---|
154 | ../Shapes/unittests/stubs/ApproximateShapeVolumeStub.cpp
|
---|
155 | BoxUnitTest_LDADD = \
|
---|
156 | ../libMolecuilder.la \
|
---|
157 | ../libMolecuilderShapes.la \
|
---|
158 | ../libMolecuilderHelpers.la \
|
---|
159 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
---|
160 | ${CodePatterns_LIBS} \
|
---|
161 | $(BOOST_LIB)
|
---|
162 |
|
---|
163 | AtomIdSetUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
164 | AtomIdSetUnitTest.cpp \
|
---|
165 | AtomIdSetUnitTest.hpp
|
---|
166 | AtomIdSetUnitTest_LDADD = $(ALLLIBS)
|
---|
167 |
|
---|
168 | Box_BoundaryConditionsTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
169 | Box_BoundaryConditionsUnitTest.cpp \
|
---|
170 | Box_BoundaryConditionsUnitTest.hpp \
|
---|
171 | ../Box_BoundaryConditions.cpp \
|
---|
172 | ../Box_BoundaryConditions.hpp
|
---|
173 | Box_BoundaryConditionsTest_LDADD = \
|
---|
174 | ${CodePatterns_LIBS} \
|
---|
175 | $(BOOST_LIB)
|
---|
176 |
|
---|
177 | FormulaUnittest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
178 | FormulaUnitTest.cpp \
|
---|
179 | FormulaUnitTest.hpp
|
---|
180 | FormulaUnittest_LDADD = $(ALLLIBS)
|
---|
181 |
|
---|
182 | ListOfBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
183 | ListOfBondsUnitTest.cpp \
|
---|
184 | ListOfBondsUnitTest.hpp
|
---|
185 | ListOfBondsUnitTest_LDADD = $(ALLLIBS)
|
---|
186 |
|
---|
187 | MoleculeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
188 | MoleculeUnitTest.cpp \
|
---|
189 | MoleculeUnitTest.hpp
|
---|
190 | MoleculeUnitTest_LDADD = \
|
---|
191 | $(ALLLIBS) \
|
---|
192 | ../libMolecuilderShapes.la \
|
---|
193 | ../libMolecuilderHelpers.la
|
---|
194 |
|
---|
195 | WorldTimeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
196 | WorldTimeUnitTest.cpp \
|
---|
197 | WorldTimeUnitTest.hpp \
|
---|
198 | ../WorldTime.cpp \
|
---|
199 | ../WorldTime.hpp
|
---|
200 | WorldTimeUnitTest_LDADD = ${BOOST_LIB}
|
---|
201 |
|
---|
202 |
|
---|
203 | TestRunner_SOURCES = TestRunnerMain.cpp $(TESTSOURCES) $(TESTHEADERS)
|
---|
204 | TestRunner_LDADD = ${UILIBS} ${ALLLIBS}
|
---|
205 |
|
---|
206 | #AUTOMAKE_OPTIONS = parallel-tests
|
---|
207 |
|
---|
208 | endif
|
---|