source: src/unittests/Makefile.am@ eb0d77

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 eb0d77 was eb0d77, checked in by Frederik Heber <heber@…>, 12 years ago

FIX: Shared library libMolecuilderJobs needs to be given explicitly where brought in dependently.

  • in my eyes, this is a libtool bug (see #1002565 on ubuntu's launchpad) as libtool should pull in shared libraries that are list as dependencies in given shared libraries (and also known to libtool according to the .la file). However, libtool.m4 has a switch find_all_dep_libs which is set to no for linux systems. Activating it causes the correct linking behavior but faults later because shared libraries are not found (i.e. some rpath problem).
  • Hence, libMolecuilderJobs.la is given as dependency everywhere where also libMolecuilderUI is listed (also for all unit tests).
  • Property mode set to 100644
File size: 5.4 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 =
8
9include ../../src/Actions/unittests/Makefile.am
10include ../../src/Analysis/unittests/Makefile.am
11include ../../src/Atom/unittests/Makefile.am
12include ../../src/Descriptors/unittests/Makefile.am
13include ../../src/Element/unittests/Makefile.am
14include ../../src/Filling/unittests/Makefile.am
15include ../../src/Fragmentation/unittests/Makefile.am
16include ../../src/Graph/unittests/Makefile.am
17
18if CONDJOBMARKET
19include ../../src/Jobs/unittests/Makefile.am
20endif
21
22include ../../src/LinkedCell/unittests/Makefile.am
23include ../../src/Parameters/unittests/Makefile.am
24include ../../src/Parser/unittests/Makefile.am
25include ../../src/RandomNumbers/unittests/Makefile.am
26include ../../src/Shapes/unittests/Makefile.am
27include ../../src/Tesselation/unittests/Makefile.am
28include ../../src/UIElements/CommandLineUI/unittests/Makefile.am
29include ../../src/UIElements/Menu/unittests/Makefile.am
30
31INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/LinearAlgebra/src
32
33AM_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl
34AM_CPPFLAGS = ${BOOST_CPPFLAGS} $(CPPUNIT_CFLAGS) ${CodePatterns_CFLAGS}
35
36GENERALTESTS = \
37 AtomIdSetUnitTest \
38 BoxUnitTest \
39 Box_BoundaryConditionsTest \
40 FormulaUnittest \
41 ListOfBondsUnitTest \
42 MoleculeUnitTest \
43 WorldTimeUnitTest
44
45# these ones are checked
46TESTS += $(GENERALTESTS)
47# these ones are built for checking only
48check_PROGRAMS += $(GENERALTESTS)
49# ... and not installed
50noinst_PROGRAMS += $(GENERALTESTS)
51
52if CONDECUT
53noinst_PROGRAMS += TestRunner
54endif
55
56
57BOOST_LIB = \
58 $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LIBS) \
59 $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_FILESYSTEM_LIBS) \
60 $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS) \
61 $(BOOST_SYSTEM_LDFLAGS) $(BOOST_SYSTEM_LIBS)
62
63GENERALLIBS = \
64 ../libMolecuilder.la \
65 ../libMolecuilderHelpers.la \
66 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
67 ${CodePatterns_LIBS} \
68 $(BOOST_LIB)
69
70ALLLIBS = \
71 ../libMolecuilderFilling.la \
72 ../libMolecuilderUI.la \
73 ../libMolecuilder.la
74if CONDJOBMARKET
75ALLLIBS += \
76 ../libMolecuilderJobs.la
77endif
78ALLLIBS += \
79 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
80 ${CodePatterns_LIBS} \
81 $(BOOST_LIB)
82
83TESTSOURCES = \
84 ${ACTIONTESTSSOURCES} \
85 ${ANALYSISTESTSSOURCES} \
86 ${DESCRIPTORTESTSSOURCES} \
87 ${ELEMENTTESTSSOURCES} \
88 ${FILLINGTESTSSOURCES} \
89 ${FRAGMENTATIONTESTSSOURCES} \
90 ${GRAPHTESTSSOURCES} \
91 ${LINKEDCELLTESTSSOURCES} \
92 ${LINEARALGEBRATESTSSOURCES} \
93 ${PARAMETERTESTSSOURCES} \
94 ${PARSERTESTSSOURCES} \
95 ${RANDOMNUMBERTESTSSOURCES} \
96 ${SHAPETESTSSOURCES} \
97 ${TESSELATIONTESTSSOURCES} \
98 $(UIELEMENTSCOMMANDLINEPARSERTESTSSOURCES) \
99 ${UIELEMENTSMENUTESTSSOURCES} \
100 stubs/ObserverStub.cpp \
101 AtomIdSetUnitTest.cpp \
102 BoxUnitTest.cpp \
103 Box_BoundaryConditionsUnitTest.cpp \
104 FormulaUnitTest.cpp \
105 ListOfBondsUnitTest.cpp \
106 MoleculeUnitTest.cpp \
107 WorldTimeUnitTest.cpp
108
109TESTHEADERS = \
110 ${ACTIONTESTSHEADERS} \
111 ${ANALYSISTESTSHEADERS} \
112 ${DESCRIPTORTESTSHEADERS} \
113 ${ELEMENTTESTSHEADERS} \
114 ${FILLINGTESTSHEADERS} \
115 ${FRAGMENTATIONTESTSHEADERS} \
116 ${GRAPHTESTSHEADERS} \
117 ${LINKEDCELLTESTHEADERS} \
118 ${LINEARALGEBRATESTSHEADERS} \
119 ${PARAMETERTESTSHEADERS} \
120 ${PARSERTESTSHEADERS} \
121 ${RANDOMNUMBERTESTSHEADERS} \
122 ${SHAPETESTSHEADERS} \
123 ${TESSELATIONTESTSHEADERS} \
124 $(UIELEMENTSCOMMANDLINEPARSERTESTSHEADERS) \
125 ${UIELEMENTSMENUTESTSHEADERS} \
126 stubs/ObserverStub.hpp \
127 AtomIdSetUnitTest.hpp \
128 BoxUnitTest.hpp \
129 Box_BoundaryConditionsUnitTest.hpp \
130 FormulaUnitTest.hpp \
131 ListOfBondsUnitTest.hpp \
132 MoleculeUnitTest.hpp \
133 WorldTimeUnitTest.hpp
134
135
136BoxUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
137 BoxUnitTest.cpp \
138 BoxUnitTest.hpp \
139 stubs/ObserverStub.cpp \
140 stubs/ObserverStub.hpp \
141 ../Shapes/unittests/stubs/ApproximateShapeAreaStub.cpp \
142 ../Shapes/unittests/stubs/ApproximateShapeVolumeStub.cpp
143BoxUnitTest_LDADD = \
144 ../libMolecuilder.la \
145 ../libMolecuilderShapes.la \
146 ../libMolecuilderHelpers.la \
147 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
148 ${CodePatterns_LIBS}
149
150AtomIdSetUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
151 AtomIdSetUnitTest.cpp \
152 AtomIdSetUnitTest.hpp
153AtomIdSetUnitTest_LDADD = $(ALLLIBS)
154
155Box_BoundaryConditionsTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
156 Box_BoundaryConditionsUnitTest.cpp \
157 Box_BoundaryConditionsUnitTest.hpp \
158 ../Box_BoundaryConditions.cpp \
159 ../Box_BoundaryConditions.hpp
160Box_BoundaryConditionsTest_LDADD = \
161 ${CodePatterns_LIBS} \
162 $(BOOST_LIB)
163
164FormulaUnittest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
165 FormulaUnitTest.cpp \
166 FormulaUnitTest.hpp
167FormulaUnittest_LDADD = $(ALLLIBS)
168
169ListOfBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
170 ListOfBondsUnitTest.cpp \
171 ListOfBondsUnitTest.hpp
172ListOfBondsUnitTest_LDADD = $(ALLLIBS)
173
174MoleculeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
175 MoleculeUnitTest.cpp \
176 MoleculeUnitTest.hpp
177MoleculeUnitTest_LDADD = $(ALLLIBS)
178
179WorldTimeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
180 WorldTimeUnitTest.cpp \
181 WorldTimeUnitTest.hpp \
182 ../WorldTime.cpp \
183 ../WorldTime.hpp
184WorldTimeUnitTest_LDADD = ${BOOST_LIB}
185
186
187TestRunner_SOURCES = TestRunnerMain.cpp $(TESTSOURCES) $(TESTHEADERS)
188TestRunner_LDADD = ${UILIBS} ${ALLLIBS}
189
190#AUTOMAKE_OPTIONS = parallel-tests
Note: See TracBrowser for help on using the repository browser.