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/LinkedCell/unittests/Makefile.am
|
---|
15 | include ../../src/Parser/unittests/Makefile.am
|
---|
16 | include ../../src/RandomNumbers/unittests/Makefile.am
|
---|
17 | include ../../src/Shapes/unittests/Makefile.am
|
---|
18 | include ../../src/Tesselation/unittests/Makefile.am
|
---|
19 | include ../../src/UIElements/CommandLineUI/unittests/Makefile.am
|
---|
20 | include ../../src/UIElements/Menu/unittests/Makefile.am
|
---|
21 |
|
---|
22 | INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/LinearAlgebra/src
|
---|
23 |
|
---|
24 | AM_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl
|
---|
25 | AM_CPPFLAGS = ${BOOST_CPPFLAGS} $(CPPUNIT_CFLAGS) ${CodePatterns_CFLAGS}
|
---|
26 |
|
---|
27 | GENERALTESTS = \
|
---|
28 | BoxUnitTest \
|
---|
29 | FormulaUnittest \
|
---|
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 | ../libMolecuilderLinkedCell_refactored.la \
|
---|
54 | ../libMolecuilderUI.la \
|
---|
55 | ../libMolecuilder.la \
|
---|
56 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
---|
57 | ${CodePatterns_LIBS} \
|
---|
58 | $(BOOST_LIB)
|
---|
59 |
|
---|
60 | TESTSOURCES = \
|
---|
61 | ${ACTIONTESTSSOURCES} \
|
---|
62 | ${ANALYSISTESTSSOURCES} \
|
---|
63 | ${DESCRIPTORTESTSSOURCES} \
|
---|
64 | ${ELEMENTTESTSSOURCES} \
|
---|
65 | ${FRAGMENTATIONTESTSSOURCES} \
|
---|
66 | ${GRAPHTESTSSOURCES} \
|
---|
67 | ${LINKEDCELLTESTSSOURCES} \
|
---|
68 | ${LINEARALGEBRATESTSSOURCES} \
|
---|
69 | ${PARSERTESTSSOURCES} \
|
---|
70 | ${RANDOMNUMBERTESTSSOURCES} \
|
---|
71 | ${SHAPETESTSSOURCES} \
|
---|
72 | ${TESSELATIONTESTSSOURCES} \
|
---|
73 | $(UIELEMENTSCOMMANDLINEPARSERTESTSSOURCES) \
|
---|
74 | ${UIELEMENTSMENUTESTSSOURCES} \
|
---|
75 | BoxUnitTest.cpp \
|
---|
76 | FormulaUnitTest.cpp \
|
---|
77 | ListOfBondsUnitTest.cpp \
|
---|
78 | WorldTimeUnitTest.cpp
|
---|
79 |
|
---|
80 | TESTHEADERS = \
|
---|
81 | ${ACTIONTESTSHEADERS} \
|
---|
82 | ${ANALYSISTESTSHEADERS} \
|
---|
83 | ${DESCRIPTORTESTSHEADERS} \
|
---|
84 | ${ELEMENTTESTSHEADERS} \
|
---|
85 | ${FRAGMENTATIONTESTSHEADERS} \
|
---|
86 | ${GRAPHTESTSHEADERS} \
|
---|
87 | ${LINKEDCELLTESTHEADERS} \
|
---|
88 | ${LINEARALGEBRATESTSHEADERS} \
|
---|
89 | ${PARSERTESTSHEADERS} \
|
---|
90 | ${RANDOMNUMBERTESTSHEADERS} \
|
---|
91 | ${SHAPETESTSHEADERS} \
|
---|
92 | ${TESSELATIONTESTSHEADERS} \
|
---|
93 | $(UIELEMENTSCOMMANDLINEPARSERTESTSHEADERS) \
|
---|
94 | ${UIELEMENTSMENUTESTSHEADERS} \
|
---|
95 | BoxUnitTest.hpp \
|
---|
96 | FormulaUnitTest.hpp \
|
---|
97 | ListOfBondsUnitTest.hpp \
|
---|
98 | WorldTimeUnitTest.hpp
|
---|
99 |
|
---|
100 |
|
---|
101 | BoxUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
102 | BoxUnitTest.cpp \
|
---|
103 | BoxUnitTest.hpp
|
---|
104 | BoxUnitTest_LDADD = \
|
---|
105 | ../libMolecuilder.la \
|
---|
106 | ../libMolecuilderShapes.la \
|
---|
107 | ../libMolecuilderHelpers.la \
|
---|
108 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la
|
---|
109 |
|
---|
110 | FormulaUnittest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
111 | FormulaUnitTest.cpp \
|
---|
112 | FormulaUnitTest.hpp
|
---|
113 | FormulaUnittest_LDADD = $(ALLLIBS)
|
---|
114 |
|
---|
115 | ListOfBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
116 | ListOfBondsUnitTest.cpp \
|
---|
117 | ListOfBondsUnitTest.hpp
|
---|
118 | ListOfBondsUnitTest_LDADD = $(ALLLIBS)
|
---|
119 |
|
---|
120 | WorldTimeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
121 | WorldTimeUnitTest.cpp \
|
---|
122 | WorldTimeUnitTest.hpp \
|
---|
123 | ../WorldTime.cpp \
|
---|
124 | ../WorldTime.hpp
|
---|
125 | WorldTimeUnitTest_LDADD = ${BOOST_LIB}
|
---|
126 |
|
---|
127 |
|
---|
128 | TestRunner_SOURCES = TestRunnerMain.cpp $(TESTSOURCES) $(TESTHEADERS)
|
---|
129 | TestRunner_LDADD = ${UILIBS} ${ALLLIBS}
|
---|
130 |
|
---|
131 | #AUTOMAKE_OPTIONS = parallel-tests
|
---|