| [18eecf] | 1 | # PLEASE adhere to the alphabetical ordering in this Makefile!
|
|---|
| 2 | # Also indentation by a single tab
|
|---|
| 3 |
|
|---|
| [455573] | 4 | check_PROGRAMS =
|
|---|
| 5 | noinst_PROGRAMS =
|
|---|
| 6 | TESTS =
|
|---|
| [53bc04] | 7 | XFAIL_TESTS =
|
|---|
| [455573] | 8 |
|
|---|
| 9 | include ../../src/Actions/unittests/Makefile.am
|
|---|
| [9b5a2c] | 10 | include ../../src/Analysis/unittests/Makefile.am
|
|---|
| [97c2550] | 11 | include ../../src/Atom/unittests/Makefile.am
|
|---|
| [455573] | 12 | include ../../src/Descriptors/unittests/Makefile.am
|
|---|
| [592be9] | 13 | include ../../src/Element/unittests/Makefile.am
|
|---|
| [600a52] | 14 | include ../../src/Filling/unittests/Makefile.am
|
|---|
| [feb7df] | 15 | include ../../src/Fragmentation/unittests/Makefile.am
|
|---|
| [629e43] | 16 | include ../../src/Graph/unittests/Makefile.am
|
|---|
| [004d5c] | 17 |
|
|---|
| 18 | if CONDJOBMARKET
|
|---|
| [cc5db5] | 19 | include ../../src/Jobs/unittests/Makefile.am
|
|---|
| [004d5c] | 20 | endif
|
|---|
| 21 |
|
|---|
| [91f592] | 22 | include ../../src/LinkedCell/unittests/Makefile.am
|
|---|
| [dbb533] | 23 | include ../../src/Parameters/unittests/Makefile.am
|
|---|
| [455573] | 24 | include ../../src/Parser/unittests/Makefile.am
|
|---|
| 25 | include ../../src/RandomNumbers/unittests/Makefile.am
|
|---|
| 26 | include ../../src/Shapes/unittests/Makefile.am
|
|---|
| [0b004b] | 27 | include ../../src/Tesselation/unittests/Makefile.am
|
|---|
| [455573] | 28 | include ../../src/UIElements/CommandLineUI/unittests/Makefile.am
|
|---|
| 29 | include ../../src/UIElements/Menu/unittests/Makefile.am
|
|---|
| [c0bccb] | 30 |
|
|---|
| [004d5c] | 31 | INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/LinearAlgebra/src
|
|---|
| [b9907c] | 32 |
|
|---|
| [f08ae7] | 33 | AM_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl
|
|---|
| [a0064e] | 34 | AM_CPPFLAGS = ${BOOST_CPPFLAGS} $(CPPUNIT_CFLAGS) ${CodePatterns_CFLAGS}
|
|---|
| [be90f1] | 35 |
|
|---|
| [455573] | 36 | GENERALTESTS = \
|
|---|
| [5e6534] | 37 | AtomIdSetUnitTest \
|
|---|
| [f844ef] | 38 | BoxUnitTest \
|
|---|
| [dd067a] | 39 | Box_BoundaryConditionsTest \
|
|---|
| [9f632c] | 40 | FormulaUnittest \
|
|---|
| [9fb860] | 41 | ListOfBondsUnitTest \
|
|---|
| [c67ff9] | 42 | MoleculeUnitTest \
|
|---|
| [f649de] | 43 | WorldTimeUnitTest
|
|---|
| [4fbca9c] | 44 |
|
|---|
| [455573] | 45 | # these ones are checked
|
|---|
| 46 | TESTS += $(GENERALTESTS)
|
|---|
| 47 | # these ones are built for checking only
|
|---|
| 48 | check_PROGRAMS += $(GENERALTESTS)
|
|---|
| 49 | # ... and not installed
|
|---|
| [fbbcde] | 50 | noinst_PROGRAMS += $(GENERALTESTS)
|
|---|
| 51 |
|
|---|
| 52 | if CONDECUT
|
|---|
| 53 | noinst_PROGRAMS += TestRunner
|
|---|
| 54 | endif
|
|---|
| 55 |
|
|---|
| [b9907c] | 56 |
|
|---|
| [f08ae7] | 57 | BOOST_LIB = \
|
|---|
| 58 | $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LIBS) \
|
|---|
| [d7d022] | 59 | $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_FILESYSTEM_LIBS) \
|
|---|
| [31ca5f] | 60 | $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS) \
|
|---|
| 61 | $(BOOST_SYSTEM_LDFLAGS) $(BOOST_SYSTEM_LIBS)
|
|---|
| [455573] | 62 |
|
|---|
| [9d4ff35] | 63 | GENERALLIBS = \
|
|---|
| 64 | ../libMolecuilder.la \
|
|---|
| 65 | ../libMolecuilderHelpers.la \
|
|---|
| 66 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
|---|
| 67 | ${CodePatterns_LIBS} \
|
|---|
| 68 | $(BOOST_LIB)
|
|---|
| 69 |
|
|---|
| [f4b5b7] | 70 | ALLLIBS = \
|
|---|
| [600a52] | 71 | ../libMolecuilderFilling.la \
|
|---|
| [455573] | 72 | ../libMolecuilderUI.la \
|
|---|
| [eb0d77] | 73 | ../libMolecuilder.la
|
|---|
| 74 | if CONDJOBMARKET
|
|---|
| 75 | ALLLIBS += \
|
|---|
| 76 | ../libMolecuilderJobs.la
|
|---|
| 77 | endif
|
|---|
| 78 | ALLLIBS += \
|
|---|
| [455573] | 79 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
|---|
| 80 | ${CodePatterns_LIBS} \
|
|---|
| 81 | $(BOOST_LIB)
|
|---|
| [4d9c01] | 82 |
|
|---|
| [9b6b2f] | 83 | TESTSOURCES = \
|
|---|
| [455573] | 84 | ${ACTIONTESTSSOURCES} \
|
|---|
| [9b5a2c] | 85 | ${ANALYSISTESTSSOURCES} \
|
|---|
| [455573] | 86 | ${DESCRIPTORTESTSSOURCES} \
|
|---|
| [592be9] | 87 | ${ELEMENTTESTSSOURCES} \
|
|---|
| [600a52] | 88 | ${FILLINGTESTSSOURCES} \
|
|---|
| [feb7df] | 89 | ${FRAGMENTATIONTESTSSOURCES} \
|
|---|
| [629e43] | 90 | ${GRAPHTESTSSOURCES} \
|
|---|
| [794bc8] | 91 | ${LINKEDCELLTESTSSOURCES} \
|
|---|
| [455573] | 92 | ${LINEARALGEBRATESTSSOURCES} \
|
|---|
| [dbb533] | 93 | ${PARAMETERTESTSSOURCES} \
|
|---|
| [455573] | 94 | ${PARSERTESTSSOURCES} \
|
|---|
| 95 | ${RANDOMNUMBERTESTSSOURCES} \
|
|---|
| 96 | ${SHAPETESTSSOURCES} \
|
|---|
| [0b004b] | 97 | ${TESSELATIONTESTSSOURCES} \
|
|---|
| [455573] | 98 | $(UIELEMENTSCOMMANDLINEPARSERTESTSSOURCES) \
|
|---|
| 99 | ${UIELEMENTSMENUTESTSSOURCES} \
|
|---|
| [99f4ee] | 100 | stubs/ObserverStub.cpp \
|
|---|
| [5e6534] | 101 | AtomIdSetUnitTest.cpp \
|
|---|
| [f844ef] | 102 | BoxUnitTest.cpp \
|
|---|
| [dd067a] | 103 | Box_BoundaryConditionsUnitTest.cpp \
|
|---|
| [f844ef] | 104 | FormulaUnitTest.cpp \
|
|---|
| 105 | ListOfBondsUnitTest.cpp \
|
|---|
| [c67ff9] | 106 | MoleculeUnitTest.cpp \
|
|---|
| [f649de] | 107 | WorldTimeUnitTest.cpp
|
|---|
| [9b6b2f] | 108 |
|
|---|
| 109 | TESTHEADERS = \
|
|---|
| [455573] | 110 | ${ACTIONTESTSHEADERS} \
|
|---|
| [9b5a2c] | 111 | ${ANALYSISTESTSHEADERS} \
|
|---|
| [455573] | 112 | ${DESCRIPTORTESTSHEADERS} \
|
|---|
| [592be9] | 113 | ${ELEMENTTESTSHEADERS} \
|
|---|
| [600a52] | 114 | ${FILLINGTESTSHEADERS} \
|
|---|
| [feb7df] | 115 | ${FRAGMENTATIONTESTSHEADERS} \
|
|---|
| [629e43] | 116 | ${GRAPHTESTSHEADERS} \
|
|---|
| [794bc8] | 117 | ${LINKEDCELLTESTHEADERS} \
|
|---|
| [455573] | 118 | ${LINEARALGEBRATESTSHEADERS} \
|
|---|
| [dbb533] | 119 | ${PARAMETERTESTSHEADERS} \
|
|---|
| [455573] | 120 | ${PARSERTESTSHEADERS} \
|
|---|
| 121 | ${RANDOMNUMBERTESTSHEADERS} \
|
|---|
| 122 | ${SHAPETESTSHEADERS} \
|
|---|
| [0b004b] | 123 | ${TESSELATIONTESTSHEADERS} \
|
|---|
| [455573] | 124 | $(UIELEMENTSCOMMANDLINEPARSERTESTSHEADERS) \
|
|---|
| 125 | ${UIELEMENTSMENUTESTSHEADERS} \
|
|---|
| [99f4ee] | 126 | stubs/ObserverStub.hpp \
|
|---|
| [5e6534] | 127 | AtomIdSetUnitTest.hpp \
|
|---|
| [f844ef] | 128 | BoxUnitTest.hpp \
|
|---|
| [dd067a] | 129 | Box_BoundaryConditionsUnitTest.hpp \
|
|---|
| [f844ef] | 130 | FormulaUnitTest.hpp \
|
|---|
| 131 | ListOfBondsUnitTest.hpp \
|
|---|
| [c67ff9] | 132 | MoleculeUnitTest.hpp \
|
|---|
| [bf4b9f] | 133 | WorldTimeUnitTest.hpp
|
|---|
| [9fb860] | 134 |
|
|---|
| [9b6b2f] | 135 |
|
|---|
| [f844ef] | 136 | BoxUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 137 | BoxUnitTest.cpp \
|
|---|
| [99f4ee] | 138 | BoxUnitTest.hpp \
|
|---|
| 139 | stubs/ObserverStub.cpp \
|
|---|
| [da1e92] | 140 | stubs/ObserverStub.hpp \
|
|---|
| 141 | ../Shapes/unittests/stubs/ApproximateShapeAreaStub.cpp \
|
|---|
| 142 | ../Shapes/unittests/stubs/ApproximateShapeVolumeStub.cpp
|
|---|
| [9d4ff35] | 143 | BoxUnitTest_LDADD = \
|
|---|
| 144 | ../libMolecuilder.la \
|
|---|
| 145 | ../libMolecuilderShapes.la \
|
|---|
| 146 | ../libMolecuilderHelpers.la \
|
|---|
| [31ca5f] | 147 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
|---|
| 148 | ${CodePatterns_LIBS}
|
|---|
| [77bc4f] | 149 |
|
|---|
| [5e6534] | 150 | AtomIdSetUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 151 | AtomIdSetUnitTest.cpp \
|
|---|
| 152 | AtomIdSetUnitTest.hpp
|
|---|
| 153 | AtomIdSetUnitTest_LDADD = $(ALLLIBS)
|
|---|
| 154 |
|
|---|
| [dd067a] | 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 |
|
|---|
| [f844ef] | 164 | FormulaUnittest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 165 | FormulaUnitTest.cpp \
|
|---|
| 166 | FormulaUnitTest.hpp
|
|---|
| [9d4ff35] | 167 | FormulaUnittest_LDADD = $(ALLLIBS)
|
|---|
| [9f632c] | 168 |
|
|---|
| [f844ef] | 169 | ListOfBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 170 | ListOfBondsUnitTest.cpp \
|
|---|
| 171 | ListOfBondsUnitTest.hpp
|
|---|
| [9d4ff35] | 172 | ListOfBondsUnitTest_LDADD = $(ALLLIBS)
|
|---|
| [266237] | 173 |
|
|---|
| [c67ff9] | 174 | MoleculeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 175 | MoleculeUnitTest.cpp \
|
|---|
| 176 | MoleculeUnitTest.hpp
|
|---|
| [eb0d77] | 177 | MoleculeUnitTest_LDADD = $(ALLLIBS)
|
|---|
| [c67ff9] | 178 |
|
|---|
| [f649de] | 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 |
|
|---|
| [36166d] | 187 | TestRunner_SOURCES = TestRunnerMain.cpp $(TESTSOURCES) $(TESTHEADERS)
|
|---|
| [b37436] | 188 | TestRunner_LDADD = ${UILIBS} ${ALLLIBS}
|
|---|
| [7a1ce5] | 189 |
|
|---|
| [18eecf] | 190 | #AUTOMAKE_OPTIONS = parallel-tests
|
|---|