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