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