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