source: src/unittests/Makefile.am@ 96af51

Fix_FitPotential_needs_atomicnumbers
Last change on this file since 96af51 was 4266eb, checked in by Frederik Heber <heber@…>, 9 years ago

Moved SubgraphEdge over to FunctionApproximation and derived argument_t from it.

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