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