source: src/unittests/Makefile.am@ d93b4b3

Action_Thermostats Add_AtomRandomPerturbation Add_FitFragmentPartialChargesAction Add_RotateAroundBondAction Add_SelectAtomByNameAction Added_ParseSaveFragmentResults AddingActions_SaveParseParticleParameters Adding_Graph_to_ChangeBondActions Adding_MD_integration_tests Adding_ParticleName_to_Atom Adding_StructOpt_integration_tests AtomFragments Automaking_mpqc_open AutomationFragmentation_failures Candidate_v1.5.4 Candidate_v1.6.0 Candidate_v1.6.1 ChangeBugEmailaddress ChangingTestPorts ChemicalSpaceEvaluator CombiningParticlePotentialParsing Combining_Subpackages Debian_Package_split Debian_package_split_molecuildergui_only Disabling_MemDebug Docu_Python_wait EmpiricalPotential_contain_HomologyGraph EmpiricalPotential_contain_HomologyGraph_documentation Enable_parallel_make_install Enhance_userguide Enhanced_StructuralOptimization Enhanced_StructuralOptimization_continued Example_ManyWaysToTranslateAtom Exclude_Hydrogens_annealWithBondGraph FitPartialCharges_GlobalError Fix_BoundInBox_CenterInBox_MoleculeActions Fix_ChargeSampling_PBC Fix_ChronosMutex Fix_FitPartialCharges Fix_FitPotential_needs_atomicnumbers Fix_ForceAnnealing Fix_IndependentFragmentGrids Fix_ParseParticles Fix_ParseParticles_split_forward_backward_Actions Fix_PopActions Fix_QtFragmentList_sorted_selection Fix_Restrictedkeyset_FragmentMolecule Fix_StatusMsg Fix_StepWorldTime_single_argument Fix_Verbose_Codepatterns Fix_fitting_potentials Fixes ForceAnnealing_goodresults ForceAnnealing_oldresults ForceAnnealing_tocheck ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_continued ForceAnnealing_with_BondGraph_continued_betteresults ForceAnnealing_with_BondGraph_contraction-expansion FragmentAction_writes_AtomFragments FragmentMolecule_checks_bonddegrees GeometryObjects Gui_Fixes Gui_displays_atomic_force_velocity ImplicitCharges IndependentFragmentGrids IndependentFragmentGrids_IndividualZeroInstances IndependentFragmentGrids_IntegrationTest IndependentFragmentGrids_Sole_NN_Calculation JobMarket_RobustOnKillsSegFaults JobMarket_StableWorkerPool JobMarket_unresolvable_hostname_fix MoreRobust_FragmentAutomation ODR_violation_mpqc_open PartialCharges_OrthogonalSummation PdbParser_setsAtomName PythonUI_with_named_parameters QtGui_reactivate_TimeChanged_changes Recreated_GuiChecks Rewrite_FitPartialCharges RotateToPrincipalAxisSystem_UndoRedo SaturateAtoms_findBestMatching SaturateAtoms_singleDegree StoppableMakroAction Subpackage_CodePatterns Subpackage_JobMarket Subpackage_LinearAlgebra Subpackage_levmar Subpackage_mpqc_open Subpackage_vmg Switchable_LogView ThirdParty_MPQC_rebuilt_buildsystem TrajectoryDependenant_MaxOrder TremoloParser_IncreasedPrecision TremoloParser_MultipleTimesteps TremoloParser_setsAtomName Ubuntu_1604_changes stable
Last change on this file since d93b4b3 was e9e86f, checked in by Frederik Heber <heber@…>, 11 years ago

FIX: UnitTestMain placed into convenience libUnitTest.

  • removed UnitTestMain.cpp from all .._SOURCES (except LinearAlgebra).
  • this is due to subdir-objects: we cannot use absolute paths anymore. automake tries to place .deps folder in the respective source path. Wrapping it up in a library removes this.
  • Property mode set to 100644
File size: 8.1 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/Fragmentation/unittests/Makefile.am
23include ../../src/Fragmentation/Exporters/unittests/Makefile.am
24include ../../src/Fragmentation/Homology/unittests/Makefile.am
25include ../../src/Fragmentation/Summation/unittests/Makefile.am
26include ../../src/Fragmentation/Summation/Containers/unittests/Makefile.am
27include ../../src/Fragmentation/Summation/SetValues/unittests/Makefile.am
28include ../../src/Graph/unittests/Makefile.am
29
30if CONDJOBMARKET
31include ../../src/Jobs/unittests/Makefile.am
32endif
33
34include ../../src/LinkedCell/unittests/Makefile.am
35include ../../src/Parameters/unittests/Makefile.am
36include ../../src/Parser/unittests/Makefile.am
37include ../../src/Potentials/unittests/Makefile.am
38include ../../src/Potentials/Specifics/unittests/Makefile.am
39include ../../src/RandomNumbers/unittests/Makefile.am
40include ../../src/Shapes/unittests/Makefile.am
41include ../../src/Tesselation/unittests/Makefile.am
42include ../../src/UIElements/CommandLineUI/unittests/Makefile.am
43include ../../src/UIElements/Menu/unittests/Makefile.am
44
45AM_LDFLAGS = \
46 ${CodePatterns_LIBS} \
47 $(CPPUNIT_LIBS) \
48 -ldl
49AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/LinearAlgebra/src ${BOOST_CPPFLAGS} $(CPPUNIT_CFLAGS) ${CodePatterns_CFLAGS}
50
51GENERALTESTS = \
52 AtomIdSetUnitTest \
53 BoxUnitTest \
54 Box_BoundaryConditionsTest \
55 FormulaUnittest \
56 ListOfBondsUnitTest \
57 MoleculeUnitTest \
58 WorldTimeUnitTest
59
60# these ones are checked
61TESTS += $(GENERALTESTS)
62# these ones are built for checking only
63check_PROGRAMS += $(GENERALTESTS)
64# ... and not installed
65noinst_PROGRAMS += $(GENERALTESTS)
66
67if CONDECUT
68noinst_PROGRAMS += TestRunner
69endif
70
71noinst_LTLIBRARIES += libUnitTest.la
72libUnitTest_la_LDFLAGS = \
73 $(AM_LDFLAGS)
74libUnitTest_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.
86libUnitTest_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
115BOOST_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
122GENERALLIBS = \
123 ../libMolecuilder.la \
124 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
125 ${CodePatterns_LIBS} \
126 $(BOOST_LIB)
127
128ALLLIBS = \
129 libUnitTest.la \
130 ../libMolecuilderUI.la
131if CONDJOBMARKET
132ALLLIBS += \
133 ../libMolecuilderJobs.la
134endif
135ALLLIBS += \
136 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
137 ${CodePatterns_LIBS} \
138 $(BOOST_LIB)
139
140TESTSOURCES = \
141 ${ACTIONTESTSSOURCES} \
142 ${ANALYSISTESTSSOURCES} \
143 ${DESCRIPTORTESTSSOURCES} \
144 ${ELEMENTTESTSSOURCES} \
145 ${FILLINGTESTSSOURCES} \
146 ${FRAGMENTATIONTESTSSOURCES} \
147 ${GRAPHTESTSSOURCES} \
148 ${LINKEDCELLTESTSSOURCES} \
149 ${LINEARALGEBRATESTSSOURCES} \
150 ${PARAMETERTESTSSOURCES} \
151 ${PARSERTESTSSOURCES} \
152 ${RANDOMNUMBERTESTSSOURCES} \
153 ${SHAPETESTSSOURCES} \
154 ${TESSELATIONTESTSSOURCES} \
155 $(UIELEMENTSCOMMANDLINEPARSERTESTSSOURCES) \
156 ${UIELEMENTSMENUTESTSSOURCES} \
157 stubs/ObserverStub.cpp \
158 AtomIdSetUnitTest.cpp \
159 BoxUnitTest.cpp \
160 Box_BoundaryConditionsUnitTest.cpp \
161 FormulaUnitTest.cpp \
162 ListOfBondsUnitTest.cpp \
163 MoleculeUnitTest.cpp \
164 WorldTimeUnitTest.cpp
165
166TESTHEADERS = \
167 ${ACTIONTESTSHEADERS} \
168 ${ANALYSISTESTSHEADERS} \
169 ${DESCRIPTORTESTSHEADERS} \
170 ${ELEMENTTESTSHEADERS} \
171 ${FILLINGTESTSHEADERS} \
172 ${FRAGMENTATIONTESTSHEADERS} \
173 ${GRAPHTESTSHEADERS} \
174 ${LINKEDCELLTESTHEADERS} \
175 ${LINEARALGEBRATESTSHEADERS} \
176 ${PARAMETERTESTSHEADERS} \
177 ${PARSERTESTSHEADERS} \
178 ${RANDOMNUMBERTESTSHEADERS} \
179 ${SHAPETESTSHEADERS} \
180 ${TESSELATIONTESTSHEADERS} \
181 $(UIELEMENTSCOMMANDLINEPARSERTESTSHEADERS) \
182 ${UIELEMENTSMENUTESTSHEADERS} \
183 stubs/ObserverStub.hpp \
184 AtomIdSetUnitTest.hpp \
185 BoxUnitTest.hpp \
186 Box_BoundaryConditionsUnitTest.hpp \
187 FormulaUnitTest.hpp \
188 ListOfBondsUnitTest.hpp \
189 MoleculeUnitTest.hpp \
190 WorldTimeUnitTest.hpp
191
192
193BoxUnitTest_SOURCES = \
194 BoxUnitTest.cpp \
195 BoxUnitTest.hpp \
196 stubs/ObserverStub.cpp \
197 stubs/ObserverStub.hpp \
198 ../Shapes/unittests/stubs/ApproximateShapeAreaStub.cpp \
199 ../Shapes/unittests/stubs/ApproximateShapeVolumeStub.cpp
200BoxUnitTest_LDADD = \
201 libUnitTest.la \
202 ../libMolecuilder.la \
203 ../libMolecuilderShapes.la \
204 ../libMolecuilderHelpers.la \
205 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
206 ${CodePatterns_LIBS} \
207 $(BOOST_LIB)
208
209AtomIdSetUnitTest_SOURCES = \
210 AtomIdSetUnitTest.cpp \
211 AtomIdSetUnitTest.hpp
212AtomIdSetUnitTest_LDADD = $(ALLLIBS)
213
214Box_BoundaryConditionsTest_SOURCES = \
215 Box_BoundaryConditionsUnitTest.cpp \
216 Box_BoundaryConditionsUnitTest.hpp \
217 ../Box_BoundaryConditions.cpp \
218 ../Box_BoundaryConditions.hpp
219Box_BoundaryConditionsTest_LDADD = \
220 libUnitTest.la \
221 ${CodePatterns_LIBS} \
222 $(BOOST_LIB)
223
224FormulaUnittest_SOURCES = \
225 FormulaUnitTest.cpp \
226 FormulaUnitTest.hpp
227FormulaUnittest_LDADD = $(ALLLIBS)
228
229ListOfBondsUnitTest_SOURCES = \
230 ListOfBondsUnitTest.cpp \
231 ListOfBondsUnitTest.hpp
232ListOfBondsUnitTest_LDADD = $(ALLLIBS)
233
234MoleculeUnitTest_SOURCES = \
235 MoleculeUnitTest.cpp \
236 MoleculeUnitTest.hpp
237MoleculeUnitTest_LDADD = \
238 $(ALLLIBS) \
239 ../libMolecuilderShapes.la \
240 ../libMolecuilderHelpers.la
241
242WorldTimeUnitTest_SOURCES = \
243 WorldTimeUnitTest.cpp \
244 WorldTimeUnitTest.hpp \
245 ../WorldTime.cpp \
246 ../WorldTime.hpp
247WorldTimeUnitTest_LDADD = \
248 libUnitTest.la \
249 ${BOOST_LIB}
250
251
252TestRunner_SOURCES = TestRunnerMain.cpp $(TESTSOURCES) $(TESTHEADERS)
253TestRunner_LDADD = ${UILIBS} ${ALLLIBS}
254
255#AUTOMAKE_OPTIONS = parallel-tests
256
257endif
Note: See TracBrowser for help on using the repository browser.