| 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/Parameters/unittests/Makefile.am
|
|---|
| 19 | include ../../src/Parser/unittests/Makefile.am
|
|---|
| 20 | include ../../src/RandomNumbers/unittests/Makefile.am
|
|---|
| 21 | include ../../src/Shapes/unittests/Makefile.am
|
|---|
| 22 | include ../../src/Tesselation/unittests/Makefile.am
|
|---|
| 23 | include ../../src/UIElements/CommandLineUI/unittests/Makefile.am
|
|---|
| 24 | include ../../src/UIElements/Menu/unittests/Makefile.am
|
|---|
| 25 |
|
|---|
| 26 | INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/LinearAlgebra/src
|
|---|
| 27 |
|
|---|
| 28 | AM_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl
|
|---|
| 29 | AM_CPPFLAGS = ${BOOST_CPPFLAGS} $(CPPUNIT_CFLAGS) ${CodePatterns_CFLAGS}
|
|---|
| 30 |
|
|---|
| 31 | GENERALTESTS = \
|
|---|
| 32 | AtomIdSetUnitTest \
|
|---|
| 33 | BoxUnitTest \
|
|---|
| 34 | Box_BoundaryConditionsTest \
|
|---|
| 35 | FormulaUnittest \
|
|---|
| 36 | ListOfBondsUnitTest \
|
|---|
| 37 | MoleculeUnitTest \
|
|---|
| 38 | WorldTimeUnitTest
|
|---|
| 39 |
|
|---|
| 40 | # these ones are checked
|
|---|
| 41 | TESTS += $(GENERALTESTS)
|
|---|
| 42 | # these ones are built for checking only
|
|---|
| 43 | check_PROGRAMS += $(GENERALTESTS)
|
|---|
| 44 | # ... and not installed
|
|---|
| 45 | noinst_PROGRAMS += $(GENERALTESTS)
|
|---|
| 46 |
|
|---|
| 47 | if CONDECUT
|
|---|
| 48 | noinst_PROGRAMS += TestRunner
|
|---|
| 49 | endif
|
|---|
| 50 |
|
|---|
| 51 |
|
|---|
| 52 | BOOST_LIB = \
|
|---|
| 53 | $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LIBS) \
|
|---|
| 54 | $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_FILESYSTEM_LIBS) \
|
|---|
| 55 | $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_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 | ${PARAMETERTESTSSOURCES} \
|
|---|
| 83 | ${PARSERTESTSSOURCES} \
|
|---|
| 84 | ${RANDOMNUMBERTESTSSOURCES} \
|
|---|
| 85 | ${SHAPETESTSSOURCES} \
|
|---|
| 86 | ${TESSELATIONTESTSSOURCES} \
|
|---|
| 87 | $(UIELEMENTSCOMMANDLINEPARSERTESTSSOURCES) \
|
|---|
| 88 | ${UIELEMENTSMENUTESTSSOURCES} \
|
|---|
| 89 | stubs/ObserverStub.cpp \
|
|---|
| 90 | AtomIdSetUnitTest.cpp \
|
|---|
| 91 | BoxUnitTest.cpp \
|
|---|
| 92 | Box_BoundaryConditionsUnitTest.cpp \
|
|---|
| 93 | FormulaUnitTest.cpp \
|
|---|
| 94 | ListOfBondsUnitTest.cpp \
|
|---|
| 95 | MoleculeUnitTest.cpp \
|
|---|
| 96 | WorldTimeUnitTest.cpp
|
|---|
| 97 |
|
|---|
| 98 | TESTHEADERS = \
|
|---|
| 99 | ${ACTIONTESTSHEADERS} \
|
|---|
| 100 | ${ANALYSISTESTSHEADERS} \
|
|---|
| 101 | ${DESCRIPTORTESTSHEADERS} \
|
|---|
| 102 | ${ELEMENTTESTSHEADERS} \
|
|---|
| 103 | ${FILLINGTESTSHEADERS} \
|
|---|
| 104 | ${FRAGMENTATIONTESTSHEADERS} \
|
|---|
| 105 | ${GRAPHTESTSHEADERS} \
|
|---|
| 106 | ${LINKEDCELLTESTHEADERS} \
|
|---|
| 107 | ${LINEARALGEBRATESTSHEADERS} \
|
|---|
| 108 | ${PARAMETERTESTSHEADERS} \
|
|---|
| 109 | ${PARSERTESTSHEADERS} \
|
|---|
| 110 | ${RANDOMNUMBERTESTSHEADERS} \
|
|---|
| 111 | ${SHAPETESTSHEADERS} \
|
|---|
| 112 | ${TESSELATIONTESTSHEADERS} \
|
|---|
| 113 | $(UIELEMENTSCOMMANDLINEPARSERTESTSHEADERS) \
|
|---|
| 114 | ${UIELEMENTSMENUTESTSHEADERS} \
|
|---|
| 115 | stubs/ObserverStub.hpp \
|
|---|
| 116 | AtomIdSetUnitTest.hpp \
|
|---|
| 117 | BoxUnitTest.hpp \
|
|---|
| 118 | Box_BoundaryConditionsUnitTest.hpp \
|
|---|
| 119 | FormulaUnitTest.hpp \
|
|---|
| 120 | ListOfBondsUnitTest.hpp \
|
|---|
| 121 | MoleculeUnitTest.hpp \
|
|---|
| 122 | WorldTimeUnitTest.hpp
|
|---|
| 123 |
|
|---|
| 124 |
|
|---|
| 125 | BoxUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 126 | BoxUnitTest.cpp \
|
|---|
| 127 | BoxUnitTest.hpp \
|
|---|
| 128 | stubs/ObserverStub.cpp \
|
|---|
| 129 | stubs/ObserverStub.hpp \
|
|---|
| 130 | ../Shapes/unittests/stubs/ApproximateShapeAreaStub.cpp \
|
|---|
| 131 | ../Shapes/unittests/stubs/ApproximateShapeVolumeStub.cpp
|
|---|
| 132 | BoxUnitTest_LDADD = \
|
|---|
| 133 | ../libMolecuilder.la \
|
|---|
| 134 | ../libMolecuilderShapes.la \
|
|---|
| 135 | ../libMolecuilderHelpers.la \
|
|---|
| 136 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la
|
|---|
| 137 |
|
|---|
| 138 | AtomIdSetUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 139 | AtomIdSetUnitTest.cpp \
|
|---|
| 140 | AtomIdSetUnitTest.hpp
|
|---|
| 141 | AtomIdSetUnitTest_LDADD = $(ALLLIBS)
|
|---|
| 142 |
|
|---|
| 143 | Box_BoundaryConditionsTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 144 | Box_BoundaryConditionsUnitTest.cpp \
|
|---|
| 145 | Box_BoundaryConditionsUnitTest.hpp \
|
|---|
| 146 | ../Box_BoundaryConditions.cpp \
|
|---|
| 147 | ../Box_BoundaryConditions.hpp
|
|---|
| 148 | Box_BoundaryConditionsTest_LDADD = \
|
|---|
| 149 | ${CodePatterns_LIBS} \
|
|---|
| 150 | $(BOOST_LIB)
|
|---|
| 151 |
|
|---|
| 152 | FormulaUnittest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 153 | FormulaUnitTest.cpp \
|
|---|
| 154 | FormulaUnitTest.hpp
|
|---|
| 155 | FormulaUnittest_LDADD = $(ALLLIBS)
|
|---|
| 156 |
|
|---|
| 157 | ListOfBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 158 | ListOfBondsUnitTest.cpp \
|
|---|
| 159 | ListOfBondsUnitTest.hpp
|
|---|
| 160 | ListOfBondsUnitTest_LDADD = $(ALLLIBS)
|
|---|
| 161 |
|
|---|
| 162 | MoleculeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 163 | MoleculeUnitTest.cpp \
|
|---|
| 164 | MoleculeUnitTest.hpp
|
|---|
| 165 | MoleculeUnitTest_LDADD = \
|
|---|
| 166 | ../libMolecuilderUI.la \
|
|---|
| 167 | ../libMolecuilder.la \
|
|---|
| 168 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la
|
|---|
| 169 |
|
|---|
| 170 | WorldTimeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 171 | WorldTimeUnitTest.cpp \
|
|---|
| 172 | WorldTimeUnitTest.hpp \
|
|---|
| 173 | ../WorldTime.cpp \
|
|---|
| 174 | ../WorldTime.hpp
|
|---|
| 175 | WorldTimeUnitTest_LDADD = ${BOOST_LIB}
|
|---|
| 176 |
|
|---|
| 177 |
|
|---|
| 178 | TestRunner_SOURCES = TestRunnerMain.cpp $(TESTSOURCES) $(TESTHEADERS)
|
|---|
| 179 | TestRunner_LDADD = ${UILIBS} ${ALLLIBS}
|
|---|
| 180 |
|
|---|
| 181 | #AUTOMAKE_OPTIONS = parallel-tests
|
|---|