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