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