| 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/Descriptors/unittests/Makefile.am
|
|---|
| 10 | include ../../src/Parser/unittests/Makefile.am
|
|---|
| 11 | include ../../src/RandomNumbers/unittests/Makefile.am
|
|---|
| 12 | include ../../src/Shapes/unittests/Makefile.am
|
|---|
| 13 | include ../../src/UIElements/CommandLineUI/unittests/Makefile.am
|
|---|
| 14 | include ../../src/UIElements/Menu/unittests/Makefile.am
|
|---|
| 15 |
|
|---|
| 16 | INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/LinearAlgebra/src
|
|---|
| 17 |
|
|---|
| 18 | AM_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl
|
|---|
| 19 | AM_CPPFLAGS = ${BOOST_CPPFLAGS} $(CPPUNIT_CFLAGS) ${CodePatterns_CFLAGS}
|
|---|
| 20 |
|
|---|
| 21 | GENERALTESTS = \
|
|---|
| 22 | AnalysisBondsUnitTest \
|
|---|
| 23 | AnalysisCorrelationToPointUnitTest \
|
|---|
| 24 | AnalysisCorrelationToSurfaceUnitTest \
|
|---|
| 25 | AnalysisPairCorrelationUnitTest \
|
|---|
| 26 | BondGraphUnitTest \
|
|---|
| 27 | BoxUnitTest \
|
|---|
| 28 | CountBondsUnitTest \
|
|---|
| 29 | ElementUnitTest \
|
|---|
| 30 | FormulaUnittest \
|
|---|
| 31 | LinkedCellUnitTest \
|
|---|
| 32 | ListOfBondsUnitTest \
|
|---|
| 33 | PeriodentafelUnitTest \
|
|---|
| 34 | TesselationUnitTest \
|
|---|
| 35 | Tesselation_BoundaryTriangleUnitTest \
|
|---|
| 36 | Tesselation_InOutsideUnitTest \
|
|---|
| 37 | WorldTimeUnitTest
|
|---|
| 38 |
|
|---|
| 39 | # these ones are checked
|
|---|
| 40 | TESTS += $(GENERALTESTS)
|
|---|
| 41 | # these ones are built for checking only
|
|---|
| 42 | check_PROGRAMS += $(GENERALTESTS)
|
|---|
| 43 | # ... and not installed
|
|---|
| 44 | noinst_PROGRAMS += $(GENERALTESTS) TestRunner
|
|---|
| 45 |
|
|---|
| 46 | BOOST_LIB = \
|
|---|
| 47 | $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LIBS) \
|
|---|
| 48 | $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_FILESYSTEM_LIBS) \
|
|---|
| 49 | $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS)
|
|---|
| 50 |
|
|---|
| 51 | ALLLIBS = \
|
|---|
| 52 | ../libMolecuilderUI.la \
|
|---|
| 53 | ../libMolecuilder.la \
|
|---|
| 54 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
|---|
| 55 | ${CodePatterns_LIBS} \
|
|---|
| 56 | $(BOOST_LIB)
|
|---|
| 57 |
|
|---|
| 58 | TESTSOURCES = \
|
|---|
| 59 | ${ACTIONTESTSSOURCES} \
|
|---|
| 60 | ${DESCRIPTORTESTSSOURCES} \
|
|---|
| 61 | ${LINEARALGEBRATESTSSOURCES} \
|
|---|
| 62 | ${PARSERTESTSSOURCES} \
|
|---|
| 63 | ${RANDOMNUMBERTESTSSOURCES} \
|
|---|
| 64 | ${SHAPETESTSSOURCES} \
|
|---|
| 65 | $(UIELEMENTSCOMMANDLINEPARSERTESTSSOURCES) \
|
|---|
| 66 | ${UIELEMENTSMENUTESTSSOURCES} \
|
|---|
| 67 | AnalysisBondsUnitTest.cpp \
|
|---|
| 68 | AnalysisCorrelationToPointUnitTest.cpp \
|
|---|
| 69 | AnalysisCorrelationToSurfaceUnitTest.cpp \
|
|---|
| 70 | AnalysisPairCorrelationUnitTest.cpp \
|
|---|
| 71 | BondGraphUnitTest.cpp \
|
|---|
| 72 | BoxUnitTest.cpp \
|
|---|
| 73 | CountBondsUnitTest.cpp \
|
|---|
| 74 | ElementUnitTest.cpp \
|
|---|
| 75 | FormulaUnitTest.cpp \
|
|---|
| 76 | LinkedCellUnitTest.cpp \
|
|---|
| 77 | ListOfBondsUnitTest.cpp \
|
|---|
| 78 | PeriodentafelUnitTest.cpp \
|
|---|
| 79 | TesselationUnitTest.cpp \
|
|---|
| 80 | Tesselation_BoundaryTriangleUnitTest.cpp \
|
|---|
| 81 | Tesselation_InsideOutsideUnitTest.cpp \
|
|---|
| 82 | WorldTimeUnitTest.cpp
|
|---|
| 83 |
|
|---|
| 84 | TESTHEADERS = \
|
|---|
| 85 | ${ACTIONTESTSHEADERS} \
|
|---|
| 86 | ${DESCRIPTORTESTSHEADERS} \
|
|---|
| 87 | ${LINEARALGEBRATESTSHEADERS} \
|
|---|
| 88 | ${PARSERTESTSHEADERS} \
|
|---|
| 89 | ${RANDOMNUMBERTESTSHEADERS} \
|
|---|
| 90 | ${SHAPETESTSHEADERS} \
|
|---|
| 91 | $(UIELEMENTSCOMMANDLINEPARSERTESTSHEADERS) \
|
|---|
| 92 | ${UIELEMENTSMENUTESTSHEADERS} \
|
|---|
| 93 | AnalysisBondsUnitTest.hpp \
|
|---|
| 94 | AnalysisCorrelationToPointUnitTest.hpp \
|
|---|
| 95 | AnalysisCorrelationToSurfaceUnitTest.hpp \
|
|---|
| 96 | AnalysisPairCorrelationUnitTest.hpp \
|
|---|
| 97 | BondGraphUnitTest.hpp \
|
|---|
| 98 | BoxUnitTest.hpp \
|
|---|
| 99 | CountBondsUnitTest.hpp \
|
|---|
| 100 | ElementUnitTest.hpp \
|
|---|
| 101 | FormulaUnitTest.hpp \
|
|---|
| 102 | LinkedCellUnitTest.hpp \
|
|---|
| 103 | ListOfBondsUnitTest.hpp \
|
|---|
| 104 | PeriodentafelUnitTest.hpp \
|
|---|
| 105 | TesselationUnitTest.hpp \
|
|---|
| 106 | Tesselation_BoundaryTriangleUnitTest.hpp \
|
|---|
| 107 | Tesselation_InsideOutsideUnitTest.hpp \
|
|---|
| 108 | WorldTimeUnitTest.hpp
|
|---|
| 109 |
|
|---|
| 110 |
|
|---|
| 111 | AnalysisBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 112 | AnalysisBondsUnitTest.cpp \
|
|---|
| 113 | AnalysisBondsUnitTest.hpp
|
|---|
| 114 | AnalysisBondsUnitTest_LDADD = ${ALLLIBS}
|
|---|
| 115 |
|
|---|
| 116 | AnalysisCorrelationToPointUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 117 | AnalysisCorrelationToPointUnitTest.cpp \
|
|---|
| 118 | AnalysisCorrelationToPointUnitTest.hpp
|
|---|
| 119 | AnalysisCorrelationToPointUnitTest_LDADD = ${ALLLIBS}
|
|---|
| 120 |
|
|---|
| 121 | AnalysisCorrelationToSurfaceUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 122 | AnalysisCorrelationToSurfaceUnitTest.cpp \
|
|---|
| 123 | AnalysisCorrelationToSurfaceUnitTest.hpp
|
|---|
| 124 | AnalysisCorrelationToSurfaceUnitTest_LDADD = ${ALLLIBS}
|
|---|
| 125 |
|
|---|
| 126 | AnalysisPairCorrelationUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 127 | AnalysisPairCorrelationUnitTest.cpp \
|
|---|
| 128 | AnalysisPairCorrelationUnitTest.hpp
|
|---|
| 129 | AnalysisPairCorrelationUnitTest_LDADD = ${ALLLIBS}
|
|---|
| 130 |
|
|---|
| 131 | BondGraphUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 132 | BondGraphUnitTest.cpp \
|
|---|
| 133 | BondGraphUnitTest.hpp
|
|---|
| 134 | BondGraphUnitTest_LDADD = ${ALLLIBS}
|
|---|
| 135 |
|
|---|
| 136 | BoxUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 137 | BoxUnitTest.cpp \
|
|---|
| 138 | BoxUnitTest.hpp
|
|---|
| 139 | BoxUnitTest_LDADD = ${ALLLIBS}
|
|---|
| 140 |
|
|---|
| 141 | CountBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 142 | CountBondsUnitTest.cpp \
|
|---|
| 143 | CountBondsUnitTest.hpp
|
|---|
| 144 | CountBondsUnitTest_LDADD = ${ALLLIBS}
|
|---|
| 145 |
|
|---|
| 146 | ElementUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 147 | ElementUnitTest.cpp \
|
|---|
| 148 | ../element.cpp \
|
|---|
| 149 | ElementUnitTest.hpp \
|
|---|
| 150 | ../element.hpp
|
|---|
| 151 | ElementUnitTest_LDADD = \
|
|---|
| 152 | $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS)
|
|---|
| 153 |
|
|---|
| 154 | FormulaUnittest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 155 | FormulaUnitTest.cpp \
|
|---|
| 156 | FormulaUnitTest.hpp
|
|---|
| 157 | FormulaUnittest_LDADD = ${ALLLIBS}
|
|---|
| 158 |
|
|---|
| 159 | LinkedCellUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 160 | LinkedCellUnitTest.cpp \
|
|---|
| 161 | LinkedCellUnitTest.hpp
|
|---|
| 162 | LinkedCellUnitTest_LDADD = ${ALLLIBS}
|
|---|
| 163 |
|
|---|
| 164 | ListOfBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 165 | ListOfBondsUnitTest.cpp \
|
|---|
| 166 | ListOfBondsUnitTest.hpp
|
|---|
| 167 | ListOfBondsUnitTest_LDADD = ${ALLLIBS}
|
|---|
| 168 |
|
|---|
| 169 | PeriodentafelUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 170 | PeriodentafelUnitTest.cpp \
|
|---|
| 171 | PeriodentafelUnitTest.hpp
|
|---|
| 172 | PeriodentafelUnitTest_LDADD = ${ALLLIBS}
|
|---|
| 173 |
|
|---|
| 174 | TesselationUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 175 | TesselationUnitTest.cpp \
|
|---|
| 176 | TesselationUnitTest.hpp
|
|---|
| 177 | TesselationUnitTest_LDADD = ${ALLLIBS}
|
|---|
| 178 |
|
|---|
| 179 | Tesselation_BoundaryTriangleUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 180 | Tesselation_BoundaryTriangleUnitTest.cpp \
|
|---|
| 181 | Tesselation_BoundaryTriangleUnitTest.hpp
|
|---|
| 182 | Tesselation_BoundaryTriangleUnitTest_LDADD = ${ALLLIBS}
|
|---|
| 183 |
|
|---|
| 184 | Tesselation_InOutsideUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 185 | Tesselation_InsideOutsideUnitTest.cpp \
|
|---|
| 186 | Tesselation_InsideOutsideUnitTest.hpp
|
|---|
| 187 | Tesselation_InOutsideUnitTest_LDADD = ${ALLLIBS}
|
|---|
| 188 |
|
|---|
| 189 | WorldTimeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 190 | WorldTimeUnitTest.cpp \
|
|---|
| 191 | WorldTimeUnitTest.hpp \
|
|---|
| 192 | ../WorldTime.cpp \
|
|---|
| 193 | ../WorldTime.hpp
|
|---|
| 194 | WorldTimeUnitTest_LDADD = ${BOOST_LIB}
|
|---|
| 195 |
|
|---|
| 196 |
|
|---|
| 197 | TestRunner_SOURCES = TestRunnerMain.cpp $(TESTSOURCES) $(TESTHEADERS)
|
|---|
| 198 | TestRunner_LDADD = ${UILIBS} ${ALLLIBS}
|
|---|
| 199 |
|
|---|
| 200 | #AUTOMAKE_OPTIONS = parallel-tests
|
|---|