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