| [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 =
|
|---|
| 7 |
|
|---|
| 8 | include ../../src/Actions/unittests/Makefile.am
|
|---|
| [9b5a2c] | 9 | include ../../src/Analysis/unittests/Makefile.am
|
|---|
| [97c2550] | 10 | include ../../src/Atom/unittests/Makefile.am
|
|---|
| [455573] | 11 | include ../../src/Descriptors/unittests/Makefile.am
|
|---|
| [592be9] | 12 | include ../../src/Element/unittests/Makefile.am
|
|---|
| [feb7df] | 13 | include ../../src/Fragmentation/unittests/Makefile.am
|
|---|
| [629e43] | 14 | include ../../src/Graph/unittests/Makefile.am
|
|---|
| [91f592] | 15 | include ../../src/LinkedCell/unittests/Makefile.am
|
|---|
| [455573] | 16 | include ../../src/Parser/unittests/Makefile.am
|
|---|
| 17 | include ../../src/RandomNumbers/unittests/Makefile.am
|
|---|
| 18 | include ../../src/Shapes/unittests/Makefile.am
|
|---|
| [0b004b] | 19 | include ../../src/Tesselation/unittests/Makefile.am
|
|---|
| [455573] | 20 | include ../../src/UIElements/CommandLineUI/unittests/Makefile.am
|
|---|
| 21 | include ../../src/UIElements/Menu/unittests/Makefile.am
|
|---|
| [c0bccb] | 22 |
|
|---|
| [bf4b9f] | 23 | INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/LinearAlgebra/src
|
|---|
| [b9907c] | 24 |
|
|---|
| [f08ae7] | 25 | AM_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl
|
|---|
| [a0064e] | 26 | AM_CPPFLAGS = ${BOOST_CPPFLAGS} $(CPPUNIT_CFLAGS) ${CodePatterns_CFLAGS}
|
|---|
| [be90f1] | 27 |
|
|---|
| [455573] | 28 | GENERALTESTS = \
|
|---|
| [f844ef] | 29 | BoxUnitTest \
|
|---|
| [dd067a] | 30 | Box_BoundaryConditionsTest \
|
|---|
| [9f632c] | 31 | FormulaUnittest \
|
|---|
| [9fb860] | 32 | ListOfBondsUnitTest \
|
|---|
| [f649de] | 33 | WorldTimeUnitTest
|
|---|
| [4fbca9c] | 34 |
|
|---|
| [455573] | 35 | # these ones are checked
|
|---|
| 36 | TESTS += $(GENERALTESTS)
|
|---|
| 37 | # these ones are built for checking only
|
|---|
| 38 | check_PROGRAMS += $(GENERALTESTS)
|
|---|
| 39 | # ... and not installed
|
|---|
| [fbbcde] | 40 | noinst_PROGRAMS += $(GENERALTESTS)
|
|---|
| 41 |
|
|---|
| 42 | if CONDECUT
|
|---|
| 43 | noinst_PROGRAMS += TestRunner
|
|---|
| 44 | endif
|
|---|
| 45 |
|
|---|
| [b9907c] | 46 |
|
|---|
| [f08ae7] | 47 | BOOST_LIB = \
|
|---|
| 48 | $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LIBS) \
|
|---|
| [d7d022] | 49 | $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_FILESYSTEM_LIBS) \
|
|---|
| 50 | $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS)
|
|---|
| [455573] | 51 |
|
|---|
| [9d4ff35] | 52 | GENERALLIBS = \
|
|---|
| 53 | ../libMolecuilder.la \
|
|---|
| 54 | ../libMolecuilderHelpers.la \
|
|---|
| 55 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
|---|
| 56 | ${CodePatterns_LIBS} \
|
|---|
| 57 | $(BOOST_LIB)
|
|---|
| 58 |
|
|---|
| [f4b5b7] | 59 | ALLLIBS = \
|
|---|
| [455573] | 60 | ../libMolecuilderUI.la \
|
|---|
| [acbe1b] | 61 | ../libMolecuilder.la \
|
|---|
| [455573] | 62 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
|---|
| 63 | ${CodePatterns_LIBS} \
|
|---|
| 64 | $(BOOST_LIB)
|
|---|
| [4d9c01] | 65 |
|
|---|
| [9b6b2f] | 66 | TESTSOURCES = \
|
|---|
| [455573] | 67 | ${ACTIONTESTSSOURCES} \
|
|---|
| [9b5a2c] | 68 | ${ANALYSISTESTSSOURCES} \
|
|---|
| [455573] | 69 | ${DESCRIPTORTESTSSOURCES} \
|
|---|
| [592be9] | 70 | ${ELEMENTTESTSSOURCES} \
|
|---|
| [feb7df] | 71 | ${FRAGMENTATIONTESTSSOURCES} \
|
|---|
| [629e43] | 72 | ${GRAPHTESTSSOURCES} \
|
|---|
| [794bc8] | 73 | ${LINKEDCELLTESTSSOURCES} \
|
|---|
| [455573] | 74 | ${LINEARALGEBRATESTSSOURCES} \
|
|---|
| 75 | ${PARSERTESTSSOURCES} \
|
|---|
| 76 | ${RANDOMNUMBERTESTSSOURCES} \
|
|---|
| 77 | ${SHAPETESTSSOURCES} \
|
|---|
| [0b004b] | 78 | ${TESSELATIONTESTSSOURCES} \
|
|---|
| [455573] | 79 | $(UIELEMENTSCOMMANDLINEPARSERTESTSSOURCES) \
|
|---|
| 80 | ${UIELEMENTSMENUTESTSSOURCES} \
|
|---|
| [99f4ee] | 81 | stubs/ObserverStub.cpp \
|
|---|
| [f844ef] | 82 | BoxUnitTest.cpp \
|
|---|
| [dd067a] | 83 | Box_BoundaryConditionsUnitTest.cpp \
|
|---|
| [f844ef] | 84 | FormulaUnitTest.cpp \
|
|---|
| 85 | ListOfBondsUnitTest.cpp \
|
|---|
| [f649de] | 86 | WorldTimeUnitTest.cpp
|
|---|
| [9b6b2f] | 87 |
|
|---|
| 88 | TESTHEADERS = \
|
|---|
| [455573] | 89 | ${ACTIONTESTSHEADERS} \
|
|---|
| [9b5a2c] | 90 | ${ANALYSISTESTSHEADERS} \
|
|---|
| [455573] | 91 | ${DESCRIPTORTESTSHEADERS} \
|
|---|
| [592be9] | 92 | ${ELEMENTTESTSHEADERS} \
|
|---|
| [feb7df] | 93 | ${FRAGMENTATIONTESTSHEADERS} \
|
|---|
| [629e43] | 94 | ${GRAPHTESTSHEADERS} \
|
|---|
| [794bc8] | 95 | ${LINKEDCELLTESTHEADERS} \
|
|---|
| [455573] | 96 | ${LINEARALGEBRATESTSHEADERS} \
|
|---|
| 97 | ${PARSERTESTSHEADERS} \
|
|---|
| 98 | ${RANDOMNUMBERTESTSHEADERS} \
|
|---|
| 99 | ${SHAPETESTSHEADERS} \
|
|---|
| [0b004b] | 100 | ${TESSELATIONTESTSHEADERS} \
|
|---|
| [455573] | 101 | $(UIELEMENTSCOMMANDLINEPARSERTESTSHEADERS) \
|
|---|
| 102 | ${UIELEMENTSMENUTESTSHEADERS} \
|
|---|
| [99f4ee] | 103 | stubs/ObserverStub.hpp \
|
|---|
| [f844ef] | 104 | BoxUnitTest.hpp \
|
|---|
| [dd067a] | 105 | Box_BoundaryConditionsUnitTest.hpp \
|
|---|
| [f844ef] | 106 | FormulaUnitTest.hpp \
|
|---|
| 107 | ListOfBondsUnitTest.hpp \
|
|---|
| [bf4b9f] | 108 | WorldTimeUnitTest.hpp
|
|---|
| [9fb860] | 109 |
|
|---|
| [9b6b2f] | 110 |
|
|---|
| [f844ef] | 111 | BoxUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 112 | BoxUnitTest.cpp \
|
|---|
| [99f4ee] | 113 | BoxUnitTest.hpp \
|
|---|
| 114 | stubs/ObserverStub.cpp \
|
|---|
| 115 | stubs/ObserverStub.hpp
|
|---|
| [9d4ff35] | 116 | BoxUnitTest_LDADD = \
|
|---|
| 117 | ../libMolecuilder.la \
|
|---|
| 118 | ../libMolecuilderShapes.la \
|
|---|
| 119 | ../libMolecuilderHelpers.la \
|
|---|
| 120 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la
|
|---|
| [77bc4f] | 121 |
|
|---|
| [dd067a] | 122 | Box_BoundaryConditionsTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 123 | Box_BoundaryConditionsUnitTest.cpp \
|
|---|
| 124 | Box_BoundaryConditionsUnitTest.hpp \
|
|---|
| 125 | ../Box_BoundaryConditions.cpp \
|
|---|
| 126 | ../Box_BoundaryConditions.hpp
|
|---|
| 127 | Box_BoundaryConditionsTest_LDADD = \
|
|---|
| 128 | ${CodePatterns_LIBS} \
|
|---|
| 129 | $(BOOST_LIB)
|
|---|
| 130 |
|
|---|
| [f844ef] | 131 | FormulaUnittest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 132 | FormulaUnitTest.cpp \
|
|---|
| 133 | FormulaUnitTest.hpp
|
|---|
| [9d4ff35] | 134 | FormulaUnittest_LDADD = $(ALLLIBS)
|
|---|
| [9f632c] | 135 |
|
|---|
| [f844ef] | 136 | ListOfBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 137 | ListOfBondsUnitTest.cpp \
|
|---|
| 138 | ListOfBondsUnitTest.hpp
|
|---|
| [9d4ff35] | 139 | ListOfBondsUnitTest_LDADD = $(ALLLIBS)
|
|---|
| [266237] | 140 |
|
|---|
| [f649de] | 141 | WorldTimeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 142 | WorldTimeUnitTest.cpp \
|
|---|
| 143 | WorldTimeUnitTest.hpp \
|
|---|
| 144 | ../WorldTime.cpp \
|
|---|
| 145 | ../WorldTime.hpp
|
|---|
| 146 | WorldTimeUnitTest_LDADD = ${BOOST_LIB}
|
|---|
| 147 |
|
|---|
| 148 |
|
|---|
| [36166d] | 149 | TestRunner_SOURCES = TestRunnerMain.cpp $(TESTSOURCES) $(TESTHEADERS)
|
|---|
| [b37436] | 150 | TestRunner_LDADD = ${UILIBS} ${ALLLIBS}
|
|---|
| [7a1ce5] | 151 |
|
|---|
| [18eecf] | 152 | #AUTOMAKE_OPTIONS = parallel-tests
|
|---|