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