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