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