| 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 | XFAIL_TESTS =
|
|---|
| 8 |
|
|---|
| 9 | include ../../src/Actions/unittests/Makefile.am
|
|---|
| 10 | include ../../src/Analysis/unittests/Makefile.am
|
|---|
| 11 | include ../../src/Atom/unittests/Makefile.am
|
|---|
| 12 | include ../../src/Descriptors/unittests/Makefile.am
|
|---|
| 13 | include ../../src/Element/unittests/Makefile.am
|
|---|
| 14 | include ../../src/Filling/unittests/Makefile.am
|
|---|
| 15 | include ../../src/Fragmentation/unittests/Makefile.am
|
|---|
| 16 | include ../../src/Graph/unittests/Makefile.am
|
|---|
| 17 | include ../../src/LinkedCell/unittests/Makefile.am
|
|---|
| 18 | include ../../src/Parser/unittests/Makefile.am
|
|---|
| 19 | include ../../src/RandomNumbers/unittests/Makefile.am
|
|---|
| 20 | include ../../src/Shapes/unittests/Makefile.am
|
|---|
| 21 | include ../../src/Tesselation/unittests/Makefile.am
|
|---|
| 22 | include ../../src/UIElements/CommandLineUI/unittests/Makefile.am
|
|---|
| 23 | include ../../src/UIElements/Menu/unittests/Makefile.am
|
|---|
| 24 |
|
|---|
| 25 | INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/LinearAlgebra/src
|
|---|
| 26 |
|
|---|
| 27 | AM_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl
|
|---|
| 28 | AM_CPPFLAGS = ${BOOST_CPPFLAGS} $(CPPUNIT_CFLAGS) ${CodePatterns_CFLAGS}
|
|---|
| 29 |
|
|---|
| 30 | GENERALTESTS = \
|
|---|
| 31 | AtomIdSetUnitTest \
|
|---|
| 32 | BoxUnitTest \
|
|---|
| 33 | Box_BoundaryConditionsTest \
|
|---|
| 34 | FormulaUnittest \
|
|---|
| 35 | ListOfBondsUnitTest \
|
|---|
| 36 | MoleculeUnitTest \
|
|---|
| 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)
|
|---|
| 45 |
|
|---|
| 46 | if CONDECUT
|
|---|
| 47 | noinst_PROGRAMS += TestRunner
|
|---|
| 48 | endif
|
|---|
| 49 |
|
|---|
| 50 |
|
|---|
| 51 | BOOST_LIB = \
|
|---|
| 52 | $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LIBS) \
|
|---|
| 53 | $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_FILESYSTEM_LIBS) \
|
|---|
| 54 | $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS) \
|
|---|
| 55 | $(BOOST_SYSTEM_LDFLAGS) $(BOOST_SYSTEM_LIBS)
|
|---|
| 56 |
|
|---|
| 57 | GENERALLIBS = \
|
|---|
| 58 | ../libMolecuilder.la \
|
|---|
| 59 | ../libMolecuilderHelpers.la \
|
|---|
| 60 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
|---|
| 61 | ${CodePatterns_LIBS} \
|
|---|
| 62 | $(BOOST_LIB)
|
|---|
| 63 |
|
|---|
| 64 | ALLLIBS = \
|
|---|
| 65 | ../libMolecuilderFilling.la \
|
|---|
| 66 | ../libMolecuilderUI.la \
|
|---|
| 67 | ../libMolecuilder.la \
|
|---|
| 68 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
|---|
| 69 | ${CodePatterns_LIBS} \
|
|---|
| 70 | $(BOOST_LIB)
|
|---|
| 71 |
|
|---|
| 72 | TESTSOURCES = \
|
|---|
| 73 | ${ACTIONTESTSSOURCES} \
|
|---|
| 74 | ${ANALYSISTESTSSOURCES} \
|
|---|
| 75 | ${DESCRIPTORTESTSSOURCES} \
|
|---|
| 76 | ${ELEMENTTESTSSOURCES} \
|
|---|
| 77 | ${FILLINGTESTSSOURCES} \
|
|---|
| 78 | ${FRAGMENTATIONTESTSSOURCES} \
|
|---|
| 79 | ${GRAPHTESTSSOURCES} \
|
|---|
| 80 | ${LINKEDCELLTESTSSOURCES} \
|
|---|
| 81 | ${LINEARALGEBRATESTSSOURCES} \
|
|---|
| 82 | ${PARSERTESTSSOURCES} \
|
|---|
| 83 | ${RANDOMNUMBERTESTSSOURCES} \
|
|---|
| 84 | ${SHAPETESTSSOURCES} \
|
|---|
| 85 | ${TESSELATIONTESTSSOURCES} \
|
|---|
| 86 | $(UIELEMENTSCOMMANDLINEPARSERTESTSSOURCES) \
|
|---|
| 87 | ${UIELEMENTSMENUTESTSSOURCES} \
|
|---|
| 88 | stubs/ObserverStub.cpp \
|
|---|
| 89 | AtomIdSetUnitTest.cpp \
|
|---|
| 90 | BoxUnitTest.cpp \
|
|---|
| 91 | Box_BoundaryConditionsUnitTest.cpp \
|
|---|
| 92 | FormulaUnitTest.cpp \
|
|---|
| 93 | ListOfBondsUnitTest.cpp \
|
|---|
| 94 | MoleculeUnitTest.cpp \
|
|---|
| 95 | WorldTimeUnitTest.cpp
|
|---|
| 96 |
|
|---|
| 97 | TESTHEADERS = \
|
|---|
| 98 | ${ACTIONTESTSHEADERS} \
|
|---|
| 99 | ${ANALYSISTESTSHEADERS} \
|
|---|
| 100 | ${DESCRIPTORTESTSHEADERS} \
|
|---|
| 101 | ${ELEMENTTESTSHEADERS} \
|
|---|
| 102 | ${FILLINGTESTSHEADERS} \
|
|---|
| 103 | ${FRAGMENTATIONTESTSHEADERS} \
|
|---|
| 104 | ${GRAPHTESTSHEADERS} \
|
|---|
| 105 | ${LINKEDCELLTESTHEADERS} \
|
|---|
| 106 | ${LINEARALGEBRATESTSHEADERS} \
|
|---|
| 107 | ${PARSERTESTSHEADERS} \
|
|---|
| 108 | ${RANDOMNUMBERTESTSHEADERS} \
|
|---|
| 109 | ${SHAPETESTSHEADERS} \
|
|---|
| 110 | ${TESSELATIONTESTSHEADERS} \
|
|---|
| 111 | $(UIELEMENTSCOMMANDLINEPARSERTESTSHEADERS) \
|
|---|
| 112 | ${UIELEMENTSMENUTESTSHEADERS} \
|
|---|
| 113 | stubs/ObserverStub.hpp \
|
|---|
| 114 | AtomIdSetUnitTest.hpp \
|
|---|
| 115 | BoxUnitTest.hpp \
|
|---|
| 116 | Box_BoundaryConditionsUnitTest.hpp \
|
|---|
| 117 | FormulaUnitTest.hpp \
|
|---|
| 118 | ListOfBondsUnitTest.hpp \
|
|---|
| 119 | MoleculeUnitTest.hpp \
|
|---|
| 120 | WorldTimeUnitTest.hpp
|
|---|
| 121 |
|
|---|
| 122 |
|
|---|
| 123 | BoxUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 124 | BoxUnitTest.cpp \
|
|---|
| 125 | BoxUnitTest.hpp \
|
|---|
| 126 | stubs/ObserverStub.cpp \
|
|---|
| 127 | stubs/ObserverStub.hpp \
|
|---|
| 128 | ../Shapes/unittests/stubs/ApproximateShapeAreaStub.cpp \
|
|---|
| 129 | ../Shapes/unittests/stubs/ApproximateShapeVolumeStub.cpp
|
|---|
| 130 | BoxUnitTest_LDADD = \
|
|---|
| 131 | ../libMolecuilder.la \
|
|---|
| 132 | ../libMolecuilderShapes.la \
|
|---|
| 133 | ../libMolecuilderHelpers.la \
|
|---|
| 134 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
|---|
| 135 | ${CodePatterns_LIBS}
|
|---|
| 136 |
|
|---|
| 137 | AtomIdSetUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 138 | AtomIdSetUnitTest.cpp \
|
|---|
| 139 | AtomIdSetUnitTest.hpp
|
|---|
| 140 | AtomIdSetUnitTest_LDADD = $(ALLLIBS)
|
|---|
| 141 |
|
|---|
| 142 | Box_BoundaryConditionsTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 143 | Box_BoundaryConditionsUnitTest.cpp \
|
|---|
| 144 | Box_BoundaryConditionsUnitTest.hpp \
|
|---|
| 145 | ../Box_BoundaryConditions.cpp \
|
|---|
| 146 | ../Box_BoundaryConditions.hpp
|
|---|
| 147 | Box_BoundaryConditionsTest_LDADD = \
|
|---|
| 148 | ${CodePatterns_LIBS} \
|
|---|
| 149 | $(BOOST_LIB)
|
|---|
| 150 |
|
|---|
| 151 | FormulaUnittest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 152 | FormulaUnitTest.cpp \
|
|---|
| 153 | FormulaUnitTest.hpp
|
|---|
| 154 | FormulaUnittest_LDADD = $(ALLLIBS)
|
|---|
| 155 |
|
|---|
| 156 | ListOfBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 157 | ListOfBondsUnitTest.cpp \
|
|---|
| 158 | ListOfBondsUnitTest.hpp
|
|---|
| 159 | ListOfBondsUnitTest_LDADD = $(ALLLIBS)
|
|---|
| 160 |
|
|---|
| 161 | MoleculeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 162 | MoleculeUnitTest.cpp \
|
|---|
| 163 | MoleculeUnitTest.hpp
|
|---|
| 164 | MoleculeUnitTest_LDADD = \
|
|---|
| 165 | ../libMolecuilderUI.la \
|
|---|
| 166 | ../libMolecuilder.la \
|
|---|
| 167 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la
|
|---|
| 168 |
|
|---|
| 169 | WorldTimeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 170 | WorldTimeUnitTest.cpp \
|
|---|
| 171 | WorldTimeUnitTest.hpp \
|
|---|
| 172 | ../WorldTime.cpp \
|
|---|
| 173 | ../WorldTime.hpp
|
|---|
| 174 | WorldTimeUnitTest_LDADD = ${BOOST_LIB}
|
|---|
| 175 |
|
|---|
| 176 |
|
|---|
| 177 | TestRunner_SOURCES = TestRunnerMain.cpp $(TESTSOURCES) $(TESTHEADERS)
|
|---|
| 178 | TestRunner_LDADD = ${UILIBS} ${ALLLIBS}
|
|---|
| 179 |
|
|---|
| 180 | #AUTOMAKE_OPTIONS = parallel-tests
|
|---|