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 | noinst_LTLIBRARIES =
|
---|
10 |
|
---|
11 | #AUTOMAKE_OPTIONS = no-dependencies
|
---|
12 |
|
---|
13 | if CONDCPPUNIT
|
---|
14 |
|
---|
15 | include ../../src/Actions/unittests/Makefile.am
|
---|
16 | include ../../src/Analysis/unittests/Makefile.am
|
---|
17 | include ../../src/Atom/unittests/Makefile.am
|
---|
18 | include ../../src/Descriptors/unittests/Makefile.am
|
---|
19 | include ../../src/Element/unittests/Makefile.am
|
---|
20 | include ../../src/Filling/unittests/Makefile.am
|
---|
21 | include ../../src/FunctionApproximation/unittests/Makefile.am
|
---|
22 | include ../../src/Fragmentation/unittests/Makefile.am
|
---|
23 | include ../../src/Fragmentation/Exporters/unittests/Makefile.am
|
---|
24 | include ../../src/Fragmentation/Homology/unittests/Makefile.am
|
---|
25 | include ../../src/Fragmentation/Summation/unittests/Makefile.am
|
---|
26 | include ../../src/Fragmentation/Summation/Containers/unittests/Makefile.am
|
---|
27 | include ../../src/Fragmentation/Summation/SetValues/unittests/Makefile.am
|
---|
28 | include ../../src/Graph/unittests/Makefile.am
|
---|
29 |
|
---|
30 | if CONDJOBMARKET
|
---|
31 | include ../../src/Jobs/unittests/Makefile.am
|
---|
32 | endif
|
---|
33 |
|
---|
34 | include ../../src/LinkedCell/unittests/Makefile.am
|
---|
35 | include ../../src/Parameters/unittests/Makefile.am
|
---|
36 | include ../../src/Parser/unittests/Makefile.am
|
---|
37 | include ../../src/Potentials/unittests/Makefile.am
|
---|
38 | include ../../src/Potentials/Specifics/unittests/Makefile.am
|
---|
39 | include ../../src/RandomNumbers/unittests/Makefile.am
|
---|
40 | include ../../src/Shapes/unittests/Makefile.am
|
---|
41 | include ../../src/Tesselation/unittests/Makefile.am
|
---|
42 | include ../../src/UIElements/CommandLineUI/unittests/Makefile.am
|
---|
43 | include ../../src/UIElements/Menu/unittests/Makefile.am
|
---|
44 |
|
---|
45 | AM_LDFLAGS = \
|
---|
46 | ${CodePatterns_LIBS} \
|
---|
47 | $(CPPUNIT_LIBS) \
|
---|
48 | -ldl
|
---|
49 | AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/LinearAlgebra/src ${BOOST_CPPFLAGS} $(CPPUNIT_CFLAGS) ${CodePatterns_CFLAGS}
|
---|
50 |
|
---|
51 | GENERALTESTS = \
|
---|
52 | AtomIdSetUnitTest \
|
---|
53 | BoxUnitTest \
|
---|
54 | Box_BoundaryConditionsTest \
|
---|
55 | FormulaUnittest \
|
---|
56 | ListOfBondsUnitTest \
|
---|
57 | MoleculeUnitTest \
|
---|
58 | WorldTimeUnitTest
|
---|
59 |
|
---|
60 | # these ones are checked
|
---|
61 | TESTS += $(GENERALTESTS)
|
---|
62 | # these ones are built for checking only
|
---|
63 | check_PROGRAMS += $(GENERALTESTS)
|
---|
64 | # ... and not installed
|
---|
65 | noinst_PROGRAMS += $(GENERALTESTS)
|
---|
66 |
|
---|
67 | if CONDECUT
|
---|
68 | noinst_PROGRAMS += TestRunner
|
---|
69 | endif
|
---|
70 |
|
---|
71 | noinst_LTLIBRARIES += libUnitTest.la
|
---|
72 | libUnitTest_la_LDFLAGS = \
|
---|
73 | $(AM_LDFLAGS)
|
---|
74 | libUnitTest_la_LIBADD =
|
---|
75 |
|
---|
76 | #nobase_libUnitTest_la_include_HEADERS =
|
---|
77 |
|
---|
78 | ## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
|
---|
79 | ## target. Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and
|
---|
80 | ## will therefore be treated as if it were literally part of the target name,
|
---|
81 | ## and the variable name derived from that.
|
---|
82 | ## The file extension .cc is recognized by Automake, and makes it produce
|
---|
83 | ## rules which invoke the C++ compiler to produce a libtool object file (.lo)
|
---|
84 | ## from each source file. Note that it is not necessary to list header files
|
---|
85 | ## which are already listed elsewhere in a _HEADERS variable assignment.
|
---|
86 | libUnitTest_la_SOURCES = UnitTestMain.cpp
|
---|
87 |
|
---|
88 | ## Instruct libtool to include ABI version information in the generated shared
|
---|
89 | ## library file (.so). The library ABI version is defined in configure.ac, so
|
---|
90 | ## that all version information is kept in one place.
|
---|
91 | #libUnitTest_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
|
---|
92 |
|
---|
93 | ## The generated configuration header is installed in its own subdirectory of
|
---|
94 | ## $(libdir). The reason for this is that the configuration information put
|
---|
95 | ## into this header file describes the target platform the installed library
|
---|
96 | ## has been built for. Thus the file must not be installed into a location
|
---|
97 | ## intended for architecture-independent files, as defined by the Filesystem
|
---|
98 | ## Hierarchy Standard (FHS).
|
---|
99 | ## The nodist_ prefix instructs Automake to not generate rules for including
|
---|
100 | ## the listed files in the distribution on 'make dist'. Files that are listed
|
---|
101 | ## in _HEADERS variables are normally included in the distribution, but the
|
---|
102 | ## configuration header file is generated at configure time and should not be
|
---|
103 | ## shipped with the source tarball.
|
---|
104 | #libUnitTest_la_libincludedir = $(libdir)/MoleCuilder/include
|
---|
105 | #nodist_libUnitTest_la_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
|
---|
106 |
|
---|
107 | ## Install the generated pkg-config file (.pc) into the expected location for
|
---|
108 | ## architecture-dependent package configuration information. Occasionally,
|
---|
109 | ## pkg-config files are also used for architecture-independent data packages,
|
---|
110 | ## in which case the correct install location would be $(datadir)/pkgconfig.
|
---|
111 | #pkgconfigdir = $(libdir)/pkgconfig
|
---|
112 | #pkgconfig_DATA = $(top_builddir)/MoleCuilder.pc
|
---|
113 |
|
---|
114 |
|
---|
115 | BOOST_LIB = \
|
---|
116 | $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LIBS) \
|
---|
117 | $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_FILESYSTEM_LIBS) \
|
---|
118 | $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS) \
|
---|
119 | $(BOOST_SYSTEM_LDFLAGS) $(BOOST_SYSTEM_LIBS) \
|
---|
120 | $(BOOST_THREAD_LDFLAGS) $(BOOST_THREAD_LIBS)
|
---|
121 |
|
---|
122 | GENERALLIBS = \
|
---|
123 | ../libMolecuilder.la \
|
---|
124 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
---|
125 | ${CodePatterns_LIBS} \
|
---|
126 | $(BOOST_LIB)
|
---|
127 |
|
---|
128 | ALLLIBS = \
|
---|
129 | libUnitTest.la \
|
---|
130 | ../libMolecuilder.la \
|
---|
131 | ../libMolecuilderUI.la
|
---|
132 | if CONDJOBMARKET
|
---|
133 | ALLLIBS += \
|
---|
134 | ../libMolecuilderJobs.la
|
---|
135 | endif
|
---|
136 | ALLLIBS += \
|
---|
137 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
---|
138 | ${CodePatterns_LIBS} \
|
---|
139 | $(BOOST_LIB)
|
---|
140 |
|
---|
141 | TESTSOURCES = \
|
---|
142 | ${ACTIONTESTSSOURCES} \
|
---|
143 | ${ANALYSISTESTSSOURCES} \
|
---|
144 | ${DESCRIPTORTESTSSOURCES} \
|
---|
145 | ${ELEMENTTESTSSOURCES} \
|
---|
146 | ${FILLINGTESTSSOURCES} \
|
---|
147 | ${FRAGMENTATIONTESTSSOURCES} \
|
---|
148 | ${GRAPHTESTSSOURCES} \
|
---|
149 | ${LINKEDCELLTESTSSOURCES} \
|
---|
150 | ${LINEARALGEBRATESTSSOURCES} \
|
---|
151 | ${PARAMETERTESTSSOURCES} \
|
---|
152 | ${PARSERTESTSSOURCES} \
|
---|
153 | ${RANDOMNUMBERTESTSSOURCES} \
|
---|
154 | ${SHAPETESTSSOURCES} \
|
---|
155 | ${TESSELATIONTESTSSOURCES} \
|
---|
156 | $(UIELEMENTSCOMMANDLINEPARSERTESTSSOURCES) \
|
---|
157 | ${UIELEMENTSMENUTESTSSOURCES} \
|
---|
158 | stubs/ObserverStub.cpp \
|
---|
159 | AtomIdSetUnitTest.cpp \
|
---|
160 | BoxUnitTest.cpp \
|
---|
161 | Box_BoundaryConditionsUnitTest.cpp \
|
---|
162 | FormulaUnitTest.cpp \
|
---|
163 | ListOfBondsUnitTest.cpp \
|
---|
164 | MoleculeUnitTest.cpp \
|
---|
165 | WorldTimeUnitTest.cpp
|
---|
166 |
|
---|
167 | TESTHEADERS = \
|
---|
168 | ${ACTIONTESTSHEADERS} \
|
---|
169 | ${ANALYSISTESTSHEADERS} \
|
---|
170 | ${DESCRIPTORTESTSHEADERS} \
|
---|
171 | ${ELEMENTTESTSHEADERS} \
|
---|
172 | ${FILLINGTESTSHEADERS} \
|
---|
173 | ${FRAGMENTATIONTESTSHEADERS} \
|
---|
174 | ${GRAPHTESTSHEADERS} \
|
---|
175 | ${LINKEDCELLTESTHEADERS} \
|
---|
176 | ${LINEARALGEBRATESTSHEADERS} \
|
---|
177 | ${PARAMETERTESTSHEADERS} \
|
---|
178 | ${PARSERTESTSHEADERS} \
|
---|
179 | ${RANDOMNUMBERTESTSHEADERS} \
|
---|
180 | ${SHAPETESTSHEADERS} \
|
---|
181 | ${TESSELATIONTESTSHEADERS} \
|
---|
182 | $(UIELEMENTSCOMMANDLINEPARSERTESTSHEADERS) \
|
---|
183 | ${UIELEMENTSMENUTESTSHEADERS} \
|
---|
184 | stubs/ObserverStub.hpp \
|
---|
185 | AtomIdSetUnitTest.hpp \
|
---|
186 | BoxUnitTest.hpp \
|
---|
187 | Box_BoundaryConditionsUnitTest.hpp \
|
---|
188 | FormulaUnitTest.hpp \
|
---|
189 | ListOfBondsUnitTest.hpp \
|
---|
190 | MoleculeUnitTest.hpp \
|
---|
191 | WorldTimeUnitTest.hpp
|
---|
192 |
|
---|
193 |
|
---|
194 | BoxUnitTest_SOURCES = \
|
---|
195 | BoxUnitTest.cpp \
|
---|
196 | BoxUnitTest.hpp \
|
---|
197 | stubs/ObserverStub.cpp \
|
---|
198 | stubs/ObserverStub.hpp \
|
---|
199 | ../Shapes/unittests/stubs/ApproximateShapeAreaStub.cpp \
|
---|
200 | ../Shapes/unittests/stubs/ApproximateShapeVolumeStub.cpp
|
---|
201 | BoxUnitTest_LDADD = \
|
---|
202 | $(ALLLIBS) \
|
---|
203 | ../libMolecuilderShapes.la \
|
---|
204 | ../libMolecuilderHelpers.la
|
---|
205 |
|
---|
206 | AtomIdSetUnitTest_SOURCES = \
|
---|
207 | AtomIdSetUnitTest.cpp \
|
---|
208 | AtomIdSetUnitTest.hpp
|
---|
209 | AtomIdSetUnitTest_LDADD = $(ALLLIBS)
|
---|
210 |
|
---|
211 | Box_BoundaryConditionsTest_SOURCES = \
|
---|
212 | Box_BoundaryConditionsUnitTest.cpp \
|
---|
213 | Box_BoundaryConditionsUnitTest.hpp
|
---|
214 | Box_BoundaryConditionsTest_LDADD = \
|
---|
215 | $(ALLLIBS) \
|
---|
216 | ../libMolecuilderShapes.la \
|
---|
217 | ../libMolecuilderHelpers.la
|
---|
218 |
|
---|
219 | FormulaUnittest_SOURCES = \
|
---|
220 | FormulaUnitTest.cpp \
|
---|
221 | FormulaUnitTest.hpp
|
---|
222 | FormulaUnittest_LDADD = $(ALLLIBS)
|
---|
223 |
|
---|
224 | ListOfBondsUnitTest_SOURCES = \
|
---|
225 | ListOfBondsUnitTest.cpp \
|
---|
226 | ListOfBondsUnitTest.hpp
|
---|
227 | ListOfBondsUnitTest_LDADD = $(ALLLIBS)
|
---|
228 |
|
---|
229 | MoleculeUnitTest_SOURCES = \
|
---|
230 | MoleculeUnitTest.cpp \
|
---|
231 | MoleculeUnitTest.hpp
|
---|
232 | MoleculeUnitTest_LDADD = \
|
---|
233 | $(ALLLIBS) \
|
---|
234 | ../libMolecuilderShapes.la \
|
---|
235 | ../libMolecuilderHelpers.la
|
---|
236 |
|
---|
237 | WorldTimeUnitTest_SOURCES = \
|
---|
238 | WorldTimeUnitTest.cpp \
|
---|
239 | WorldTimeUnitTest.hpp
|
---|
240 | WorldTimeUnitTest_LDADD = \
|
---|
241 | $(ALLLIBS) \
|
---|
242 | ../libMolecuilderShapes.la \
|
---|
243 | ../libMolecuilderHelpers.la
|
---|
244 |
|
---|
245 |
|
---|
246 | TestRunner_SOURCES = TestRunnerMain.cpp $(TESTSOURCES) $(TESTHEADERS)
|
---|
247 | TestRunner_LDADD = ${UILIBS} ${ALLLIBS}
|
---|
248 |
|
---|
249 | #AUTOMAKE_OPTIONS = parallel-tests
|
---|
250 |
|
---|
251 | endif
|
---|