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