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 | GENERALLIBS = \
|
---|
46 | ../libMolecuilder.la \
|
---|
47 | ../libMolecuilderHelpers.la \
|
---|
48 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
---|
49 | ${CodePatterns_LIBS} \
|
---|
50 | $(BOOST_LIB)
|
---|
51 |
|
---|
52 | ALLLIBS = \
|
---|
53 | ../libMolecuilderUI.la \
|
---|
54 | ../libMolecuilder.la \
|
---|
55 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
---|
56 | ${CodePatterns_LIBS} \
|
---|
57 | $(BOOST_LIB)
|
---|
58 |
|
---|
59 | TESTSOURCES = \
|
---|
60 | ${ACTIONTESTSSOURCES} \
|
---|
61 | ${ANALYSISTESTSSOURCES} \
|
---|
62 | ${DESCRIPTORTESTSSOURCES} \
|
---|
63 | ${ELEMENTTESTSSOURCES} \
|
---|
64 | ${FRAGMENTATIONTESTSSOURCES} \
|
---|
65 | ${GRAPHTESTSSOURCES} \
|
---|
66 | ${LINEARALGEBRATESTSSOURCES} \
|
---|
67 | ${PARSERTESTSSOURCES} \
|
---|
68 | ${RANDOMNUMBERTESTSSOURCES} \
|
---|
69 | ${SHAPETESTSSOURCES} \
|
---|
70 | ${TESSELATIONTESTSSOURCES} \
|
---|
71 | $(UIELEMENTSCOMMANDLINEPARSERTESTSSOURCES) \
|
---|
72 | ${UIELEMENTSMENUTESTSSOURCES} \
|
---|
73 | BoxUnitTest.cpp \
|
---|
74 | FormulaUnitTest.cpp \
|
---|
75 | LinkedCellUnitTest.cpp \
|
---|
76 | ListOfBondsUnitTest.cpp \
|
---|
77 | WorldTimeUnitTest.cpp
|
---|
78 |
|
---|
79 | TESTHEADERS = \
|
---|
80 | ${ACTIONTESTSHEADERS} \
|
---|
81 | ${ANALYSISTESTSHEADERS} \
|
---|
82 | ${DESCRIPTORTESTSHEADERS} \
|
---|
83 | ${ELEMENTTESTSHEADERS} \
|
---|
84 | ${FRAGMENTATIONTESTSHEADERS} \
|
---|
85 | ${GRAPHTESTSHEADERS} \
|
---|
86 | ${LINEARALGEBRATESTSHEADERS} \
|
---|
87 | ${PARSERTESTSHEADERS} \
|
---|
88 | ${RANDOMNUMBERTESTSHEADERS} \
|
---|
89 | ${SHAPETESTSHEADERS} \
|
---|
90 | ${TESSELATIONTESTSHEADERS} \
|
---|
91 | $(UIELEMENTSCOMMANDLINEPARSERTESTSHEADERS) \
|
---|
92 | ${UIELEMENTSMENUTESTSHEADERS} \
|
---|
93 | BoxUnitTest.hpp \
|
---|
94 | FormulaUnitTest.hpp \
|
---|
95 | LinkedCellUnitTest.hpp \
|
---|
96 | ListOfBondsUnitTest.hpp \
|
---|
97 | WorldTimeUnitTest.hpp
|
---|
98 |
|
---|
99 |
|
---|
100 | BoxUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
101 | BoxUnitTest.cpp \
|
---|
102 | BoxUnitTest.hpp
|
---|
103 | BoxUnitTest_LDADD = \
|
---|
104 | ../libMolecuilder.la \
|
---|
105 | ../libMolecuilderShapes.la \
|
---|
106 | ../libMolecuilderHelpers.la \
|
---|
107 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la
|
---|
108 |
|
---|
109 | FormulaUnittest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
110 | FormulaUnitTest.cpp \
|
---|
111 | FormulaUnitTest.hpp
|
---|
112 | FormulaUnittest_LDADD = $(ALLLIBS)
|
---|
113 |
|
---|
114 | LinkedCellUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
115 | LinkedCellUnitTest.cpp \
|
---|
116 | LinkedCellUnitTest.hpp
|
---|
117 | LinkedCellUnitTest_LDADD = $(ALLLIBS)
|
---|
118 |
|
---|
119 | ListOfBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
120 | ListOfBondsUnitTest.cpp \
|
---|
121 | ListOfBondsUnitTest.hpp
|
---|
122 | ListOfBondsUnitTest_LDADD = $(ALLLIBS)
|
---|
123 |
|
---|
124 | WorldTimeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
125 | WorldTimeUnitTest.cpp \
|
---|
126 | WorldTimeUnitTest.hpp \
|
---|
127 | ../WorldTime.cpp \
|
---|
128 | ../WorldTime.hpp
|
---|
129 | WorldTimeUnitTest_LDADD = ${BOOST_LIB}
|
---|
130 |
|
---|
131 |
|
---|
132 | TestRunner_SOURCES = TestRunnerMain.cpp $(TESTSOURCES) $(TESTHEADERS)
|
---|
133 | TestRunner_LDADD = ${UILIBS} ${ALLLIBS}
|
---|
134 |
|
---|
135 | #AUTOMAKE_OPTIONS = parallel-tests
|
---|