[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 \
|
---|
[acbe1b] | 73 | ../libMolecuilder.la \
|
---|
[455573] | 74 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
---|
| 75 | ${CodePatterns_LIBS} \
|
---|
| 76 | $(BOOST_LIB)
|
---|
[4d9c01] | 77 |
|
---|
[9b6b2f] | 78 | TESTSOURCES = \
|
---|
[455573] | 79 | ${ACTIONTESTSSOURCES} \
|
---|
[9b5a2c] | 80 | ${ANALYSISTESTSSOURCES} \
|
---|
[455573] | 81 | ${DESCRIPTORTESTSSOURCES} \
|
---|
[592be9] | 82 | ${ELEMENTTESTSSOURCES} \
|
---|
[600a52] | 83 | ${FILLINGTESTSSOURCES} \
|
---|
[feb7df] | 84 | ${FRAGMENTATIONTESTSSOURCES} \
|
---|
[629e43] | 85 | ${GRAPHTESTSSOURCES} \
|
---|
[794bc8] | 86 | ${LINKEDCELLTESTSSOURCES} \
|
---|
[455573] | 87 | ${LINEARALGEBRATESTSSOURCES} \
|
---|
[dbb533] | 88 | ${PARAMETERTESTSSOURCES} \
|
---|
[455573] | 89 | ${PARSERTESTSSOURCES} \
|
---|
| 90 | ${RANDOMNUMBERTESTSSOURCES} \
|
---|
| 91 | ${SHAPETESTSSOURCES} \
|
---|
[0b004b] | 92 | ${TESSELATIONTESTSSOURCES} \
|
---|
[455573] | 93 | $(UIELEMENTSCOMMANDLINEPARSERTESTSSOURCES) \
|
---|
| 94 | ${UIELEMENTSMENUTESTSSOURCES} \
|
---|
[99f4ee] | 95 | stubs/ObserverStub.cpp \
|
---|
[5e6534] | 96 | AtomIdSetUnitTest.cpp \
|
---|
[f844ef] | 97 | BoxUnitTest.cpp \
|
---|
[dd067a] | 98 | Box_BoundaryConditionsUnitTest.cpp \
|
---|
[f844ef] | 99 | FormulaUnitTest.cpp \
|
---|
| 100 | ListOfBondsUnitTest.cpp \
|
---|
[c67ff9] | 101 | MoleculeUnitTest.cpp \
|
---|
[f649de] | 102 | WorldTimeUnitTest.cpp
|
---|
[9b6b2f] | 103 |
|
---|
| 104 | TESTHEADERS = \
|
---|
[455573] | 105 | ${ACTIONTESTSHEADERS} \
|
---|
[9b5a2c] | 106 | ${ANALYSISTESTSHEADERS} \
|
---|
[455573] | 107 | ${DESCRIPTORTESTSHEADERS} \
|
---|
[592be9] | 108 | ${ELEMENTTESTSHEADERS} \
|
---|
[600a52] | 109 | ${FILLINGTESTSHEADERS} \
|
---|
[feb7df] | 110 | ${FRAGMENTATIONTESTSHEADERS} \
|
---|
[629e43] | 111 | ${GRAPHTESTSHEADERS} \
|
---|
[794bc8] | 112 | ${LINKEDCELLTESTHEADERS} \
|
---|
[455573] | 113 | ${LINEARALGEBRATESTSHEADERS} \
|
---|
[dbb533] | 114 | ${PARAMETERTESTSHEADERS} \
|
---|
[455573] | 115 | ${PARSERTESTSHEADERS} \
|
---|
| 116 | ${RANDOMNUMBERTESTSHEADERS} \
|
---|
| 117 | ${SHAPETESTSHEADERS} \
|
---|
[0b004b] | 118 | ${TESSELATIONTESTSHEADERS} \
|
---|
[455573] | 119 | $(UIELEMENTSCOMMANDLINEPARSERTESTSHEADERS) \
|
---|
| 120 | ${UIELEMENTSMENUTESTSHEADERS} \
|
---|
[99f4ee] | 121 | stubs/ObserverStub.hpp \
|
---|
[5e6534] | 122 | AtomIdSetUnitTest.hpp \
|
---|
[f844ef] | 123 | BoxUnitTest.hpp \
|
---|
[dd067a] | 124 | Box_BoundaryConditionsUnitTest.hpp \
|
---|
[f844ef] | 125 | FormulaUnitTest.hpp \
|
---|
| 126 | ListOfBondsUnitTest.hpp \
|
---|
[c67ff9] | 127 | MoleculeUnitTest.hpp \
|
---|
[bf4b9f] | 128 | WorldTimeUnitTest.hpp
|
---|
[9fb860] | 129 |
|
---|
[9b6b2f] | 130 |
|
---|
[f844ef] | 131 | BoxUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
| 132 | BoxUnitTest.cpp \
|
---|
[99f4ee] | 133 | BoxUnitTest.hpp \
|
---|
| 134 | stubs/ObserverStub.cpp \
|
---|
[da1e92] | 135 | stubs/ObserverStub.hpp \
|
---|
| 136 | ../Shapes/unittests/stubs/ApproximateShapeAreaStub.cpp \
|
---|
| 137 | ../Shapes/unittests/stubs/ApproximateShapeVolumeStub.cpp
|
---|
[9d4ff35] | 138 | BoxUnitTest_LDADD = \
|
---|
| 139 | ../libMolecuilder.la \
|
---|
| 140 | ../libMolecuilderShapes.la \
|
---|
| 141 | ../libMolecuilderHelpers.la \
|
---|
[31ca5f] | 142 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
---|
| 143 | ${CodePatterns_LIBS}
|
---|
[77bc4f] | 144 |
|
---|
[5e6534] | 145 | AtomIdSetUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
| 146 | AtomIdSetUnitTest.cpp \
|
---|
| 147 | AtomIdSetUnitTest.hpp
|
---|
| 148 | AtomIdSetUnitTest_LDADD = $(ALLLIBS)
|
---|
| 149 |
|
---|
[dd067a] | 150 | Box_BoundaryConditionsTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
| 151 | Box_BoundaryConditionsUnitTest.cpp \
|
---|
| 152 | Box_BoundaryConditionsUnitTest.hpp \
|
---|
| 153 | ../Box_BoundaryConditions.cpp \
|
---|
| 154 | ../Box_BoundaryConditions.hpp
|
---|
| 155 | Box_BoundaryConditionsTest_LDADD = \
|
---|
| 156 | ${CodePatterns_LIBS} \
|
---|
| 157 | $(BOOST_LIB)
|
---|
| 158 |
|
---|
[f844ef] | 159 | FormulaUnittest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
| 160 | FormulaUnitTest.cpp \
|
---|
| 161 | FormulaUnitTest.hpp
|
---|
[9d4ff35] | 162 | FormulaUnittest_LDADD = $(ALLLIBS)
|
---|
[9f632c] | 163 |
|
---|
[f844ef] | 164 | ListOfBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
| 165 | ListOfBondsUnitTest.cpp \
|
---|
| 166 | ListOfBondsUnitTest.hpp
|
---|
[9d4ff35] | 167 | ListOfBondsUnitTest_LDADD = $(ALLLIBS)
|
---|
[266237] | 168 |
|
---|
[c67ff9] | 169 | MoleculeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
| 170 | MoleculeUnitTest.cpp \
|
---|
| 171 | MoleculeUnitTest.hpp
|
---|
| 172 | MoleculeUnitTest_LDADD = \
|
---|
| 173 | ../libMolecuilderUI.la \
|
---|
| 174 | ../libMolecuilder.la \
|
---|
| 175 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la
|
---|
| 176 |
|
---|
[f649de] | 177 | WorldTimeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
---|
| 178 | WorldTimeUnitTest.cpp \
|
---|
| 179 | WorldTimeUnitTest.hpp \
|
---|
| 180 | ../WorldTime.cpp \
|
---|
| 181 | ../WorldTime.hpp
|
---|
| 182 | WorldTimeUnitTest_LDADD = ${BOOST_LIB}
|
---|
| 183 |
|
---|
| 184 |
|
---|
[36166d] | 185 | TestRunner_SOURCES = TestRunnerMain.cpp $(TESTSOURCES) $(TESTHEADERS)
|
---|
[b37436] | 186 | TestRunner_LDADD = ${UILIBS} ${ALLLIBS}
|
---|
[7a1ce5] | 187 |
|
---|
[18eecf] | 188 | #AUTOMAKE_OPTIONS = parallel-tests
|
---|