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