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