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