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