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 |
|
---|
8 | include ../../src/Actions/unittests/Makefile.am
|
---|
9 | include ../../src/Analysis/unittests/Makefile.am
|
---|
10 | include ../../src/Descriptors/unittests/Makefile.am
|
---|
11 | include ../../src/Fragmentation/unittests/Makefile.am
|
---|
12 | include ../../src/Graph/unittests/Makefile.am
|
---|
13 | include ../../src/Parser/unittests/Makefile.am
|
---|
14 | include ../../src/RandomNumbers/unittests/Makefile.am
|
---|
15 | include ../../src/Shapes/unittests/Makefile.am
|
---|
16 | include ../../src/Tesselation/unittests/Makefile.am
|
---|
17 | include ../../src/UIElements/CommandLineUI/unittests/Makefile.am
|
---|
18 | include ../../src/UIElements/Menu/unittests/Makefile.am
|
---|
19 |
|
---|
20 | INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/LinearAlgebra/src
|
---|
21 |
|
---|
22 | AM_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl
|
---|
23 | AM_CPPFLAGS = ${BOOST_CPPFLAGS} $(CPPUNIT_CFLAGS) ${CodePatterns_CFLAGS}
|
---|
24 |
|
---|
25 | GENERALTESTS = \
|
---|
26 | BoxUnitTest \
|
---|
27 | ElementUnitTest \
|
---|
28 | FormulaUnittest \
|
---|
29 | LinkedCellUnitTest \
|
---|
30 | ListOfBondsUnitTest \
|
---|
31 | PeriodentafelUnitTest \
|
---|
32 | WorldTimeUnitTest
|
---|
33 |
|
---|
34 | # these ones are checked
|
---|
35 | TESTS += $(GENERALTESTS)
|
---|
36 | # these ones are built for checking only
|
---|
37 | check_PROGRAMS += $(GENERALTESTS)
|
---|
38 | # ... and not installed
|
---|
39 | noinst_PROGRAMS += $(GENERALTESTS) TestRunner
|
---|
40 |
|
---|
41 | BOOST_LIB = \
|
---|
42 | $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LIBS) \
|
---|
43 | $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_FILESYSTEM_LIBS) \
|
---|
44 | $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS)
|
---|
45 |
|
---|
46 | ALLLIBS = \
|
---|
47 | ../libMolecuilderUI.la \
|
---|
48 | ../libMolecuilder.la \
|
---|
49 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
---|
50 | ${CodePatterns_LIBS} \
|
---|
51 | $(BOOST_LIB)
|
---|
52 |
|
---|
53 | TESTSOURCES = \
|
---|
54 | ${ACTIONTESTSSOURCES} \
|
---|
55 | ${ANALYSISTESTSSOURCES} \
|
---|
56 | ${DESCRIPTORTESTSSOURCES} \
|
---|
57 | ${FRAGMENTATIONTESTSSOURCES} \
|
---|
58 | ${GRAPHTESTSSOURCES} \
|
---|
59 | ${LINEARALGEBRATESTSSOURCES} \
|
---|
60 | ${PARSERTESTSSOURCES} \
|
---|
61 | ${RANDOMNUMBERTESTSSOURCES} \
|
---|
62 | ${SHAPETESTSSOURCES} \
|
---|
63 | ${TESSELATIONTESTSSOURCES} \
|
---|
64 | $(UIELEMENTSCOMMANDLINEPARSERTESTSSOURCES) \
|
---|
65 | ${UIELEMENTSMENUTESTSSOURCES} \
|
---|
66 | BoxUnitTest.cpp \
|
---|
67 | ElementUnitTest.cpp \
|
---|
68 | FormulaUnitTest.cpp \
|
---|
69 | LinkedCellUnitTest.cpp \
|
---|
70 | ListOfBondsUnitTest.cpp \
|
---|
71 | PeriodentafelUnitTest.cpp \
|
---|
72 | WorldTimeUnitTest.cpp
|
---|
73 |
|
---|
74 | TESTHEADERS = \
|
---|
75 | ${ACTIONTESTSHEADERS} \
|
---|
76 | ${ANALYSISTESTSHEADERS} \
|
---|
77 | ${DESCRIPTORTESTSHEADERS} \
|
---|
78 | ${FRAGMENTATIONTESTSHEADERS} \
|
---|
79 | ${GRAPHTESTSHEADERS} \
|
---|
80 | ${LINEARALGEBRATESTSHEADERS} \
|
---|
81 | ${PARSERTESTSHEADERS} \
|
---|
82 | ${RANDOMNUMBERTESTSHEADERS} \
|
---|
83 | ${SHAPETESTSHEADERS} \
|
---|
84 | ${TESSELATIONTESTSHEADERS} \
|
---|
85 | $(UIELEMENTSCOMMANDLINEPARSERTESTSHEADERS) \
|
---|
86 | ${UIELEMENTSMENUTESTSHEADERS} \
|
---|
87 | BoxUnitTest.hpp \
|
---|
88 | ElementUnitTest.hpp \
|
---|
89 | FormulaUnitTest.hpp \
|
---|
90 | LinkedCellUnitTest.hpp \
|
---|
91 | ListOfBondsUnitTest.hpp \
|
---|
92 | PeriodentafelUnitTest.hpp \
|
---|
93 | WorldTimeUnitTest.hpp
|
---|
94 |
|
---|
95 |
|
---|
96 | BoxUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
97 | BoxUnitTest.cpp \
|
---|
98 | BoxUnitTest.hpp
|
---|
99 | BoxUnitTest_LDADD = ${ALLLIBS}
|
---|
100 |
|
---|
101 | ElementUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
102 | ElementUnitTest.cpp \
|
---|
103 | ElementUnitTest.hpp
|
---|
104 | ElementUnitTest_LDADD = \
|
---|
105 | ../libMolecuilderElement.la \
|
---|
106 | $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS)
|
---|
107 |
|
---|
108 | FormulaUnittest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
109 | FormulaUnitTest.cpp \
|
---|
110 | FormulaUnitTest.hpp
|
---|
111 | FormulaUnittest_LDADD = ${ALLLIBS}
|
---|
112 |
|
---|
113 | LinkedCellUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
114 | LinkedCellUnitTest.cpp \
|
---|
115 | LinkedCellUnitTest.hpp
|
---|
116 | LinkedCellUnitTest_LDADD = ${ALLLIBS}
|
---|
117 |
|
---|
118 | ListOfBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
119 | ListOfBondsUnitTest.cpp \
|
---|
120 | ListOfBondsUnitTest.hpp
|
---|
121 | ListOfBondsUnitTest_LDADD = ${ALLLIBS}
|
---|
122 |
|
---|
123 | PeriodentafelUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
124 | PeriodentafelUnitTest.cpp \
|
---|
125 | PeriodentafelUnitTest.hpp
|
---|
126 | PeriodentafelUnitTest_LDADD = \
|
---|
127 | ../libMolecuilderElement.la \
|
---|
128 | ../libMolecuilderHelpers.la \
|
---|
129 | $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS)
|
---|
130 |
|
---|
131 | WorldTimeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
132 | WorldTimeUnitTest.cpp \
|
---|
133 | WorldTimeUnitTest.hpp \
|
---|
134 | ../WorldTime.cpp \
|
---|
135 | ../WorldTime.hpp
|
---|
136 | WorldTimeUnitTest_LDADD = ${BOOST_LIB}
|
---|
137 |
|
---|
138 |
|
---|
139 | TestRunner_SOURCES = TestRunnerMain.cpp $(TESTSOURCES) $(TESTHEADERS)
|
---|
140 | TestRunner_LDADD = ${UILIBS} ${ALLLIBS}
|
---|
141 |
|
---|
142 | #AUTOMAKE_OPTIONS = parallel-tests
|
---|