| 1 | # PLEASE adhere to the alphabetical ordering in this Makefile!
|
|---|
| 2 | # Also indentation by a single tab
|
|---|
| 3 |
|
|---|
| 4 | check_PROGRAMS =
|
|---|
| 5 | noinst_PROGRAMS =
|
|---|
| 6 | TESTS =
|
|---|
| 7 |
|
|---|
| 8 | include ../../src/Actions/unittests/Makefile.am
|
|---|
| 9 | include ../../src/Analysis/unittests/Makefile.am
|
|---|
| 10 | include ../../src/Atom/unittests/Makefile.am
|
|---|
| 11 | include ../../src/Descriptors/unittests/Makefile.am
|
|---|
| 12 | include ../../src/Element/unittests/Makefile.am
|
|---|
| 13 | include ../../src/Fragmentation/unittests/Makefile.am
|
|---|
| 14 | include ../../src/Graph/unittests/Makefile.am
|
|---|
| 15 | include ../../src/LinkedCell/unittests/Makefile.am
|
|---|
| 16 | include ../../src/Parser/unittests/Makefile.am
|
|---|
| 17 | include ../../src/RandomNumbers/unittests/Makefile.am
|
|---|
| 18 | include ../../src/Shapes/unittests/Makefile.am
|
|---|
| 19 | include ../../src/Tesselation/unittests/Makefile.am
|
|---|
| 20 | include ../../src/UIElements/CommandLineUI/unittests/Makefile.am
|
|---|
| 21 | include ../../src/UIElements/Menu/unittests/Makefile.am
|
|---|
| 22 |
|
|---|
| 23 | INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/LinearAlgebra/src
|
|---|
| 24 |
|
|---|
| 25 | AM_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl
|
|---|
| 26 | AM_CPPFLAGS = ${BOOST_CPPFLAGS} $(CPPUNIT_CFLAGS) ${CodePatterns_CFLAGS}
|
|---|
| 27 |
|
|---|
| 28 | GENERALTESTS = \
|
|---|
| 29 | BoxUnitTest \
|
|---|
| 30 | Box_BoundaryConditionsTest \
|
|---|
| 31 | FormulaUnittest \
|
|---|
| 32 | ListOfBondsUnitTest \
|
|---|
| 33 | WorldTimeUnitTest
|
|---|
| 34 |
|
|---|
| 35 | # these ones are checked
|
|---|
| 36 | TESTS += $(GENERALTESTS)
|
|---|
| 37 | # these ones are built for checking only
|
|---|
| 38 | check_PROGRAMS += $(GENERALTESTS)
|
|---|
| 39 | # ... and not installed
|
|---|
| 40 | noinst_PROGRAMS += $(GENERALTESTS)
|
|---|
| 41 |
|
|---|
| 42 | if CONDECUT
|
|---|
| 43 | noinst_PROGRAMS += TestRunner
|
|---|
| 44 | endif
|
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 | BOOST_LIB = \
|
|---|
| 48 | $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LIBS) \
|
|---|
| 49 | $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_FILESYSTEM_LIBS) \
|
|---|
| 50 | $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS)
|
|---|
| 51 |
|
|---|
| 52 | GENERALLIBS = \
|
|---|
| 53 | ../libMolecuilder.la \
|
|---|
| 54 | ../libMolecuilderHelpers.la \
|
|---|
| 55 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
|---|
| 56 | ${CodePatterns_LIBS} \
|
|---|
| 57 | $(BOOST_LIB)
|
|---|
| 58 |
|
|---|
| 59 | ALLLIBS = \
|
|---|
| 60 | ../libMolecuilderUI.la \
|
|---|
| 61 | ../libMolecuilder.la \
|
|---|
| 62 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
|---|
| 63 | ${CodePatterns_LIBS} \
|
|---|
| 64 | $(BOOST_LIB)
|
|---|
| 65 |
|
|---|
| 66 | TESTSOURCES = \
|
|---|
| 67 | ${ACTIONTESTSSOURCES} \
|
|---|
| 68 | ${ANALYSISTESTSSOURCES} \
|
|---|
| 69 | ${DESCRIPTORTESTSSOURCES} \
|
|---|
| 70 | ${ELEMENTTESTSSOURCES} \
|
|---|
| 71 | ${FRAGMENTATIONTESTSSOURCES} \
|
|---|
| 72 | ${GRAPHTESTSSOURCES} \
|
|---|
| 73 | ${LINKEDCELLTESTSSOURCES} \
|
|---|
| 74 | ${LINEARALGEBRATESTSSOURCES} \
|
|---|
| 75 | ${PARSERTESTSSOURCES} \
|
|---|
| 76 | ${RANDOMNUMBERTESTSSOURCES} \
|
|---|
| 77 | ${SHAPETESTSSOURCES} \
|
|---|
| 78 | ${TESSELATIONTESTSSOURCES} \
|
|---|
| 79 | $(UIELEMENTSCOMMANDLINEPARSERTESTSSOURCES) \
|
|---|
| 80 | ${UIELEMENTSMENUTESTSSOURCES} \
|
|---|
| 81 | stubs/ObserverStub.cpp \
|
|---|
| 82 | BoxUnitTest.cpp \
|
|---|
| 83 | Box_BoundaryConditionsUnitTest.cpp \
|
|---|
| 84 | FormulaUnitTest.cpp \
|
|---|
| 85 | ListOfBondsUnitTest.cpp \
|
|---|
| 86 | WorldTimeUnitTest.cpp
|
|---|
| 87 |
|
|---|
| 88 | TESTHEADERS = \
|
|---|
| 89 | ${ACTIONTESTSHEADERS} \
|
|---|
| 90 | ${ANALYSISTESTSHEADERS} \
|
|---|
| 91 | ${DESCRIPTORTESTSHEADERS} \
|
|---|
| 92 | ${ELEMENTTESTSHEADERS} \
|
|---|
| 93 | ${FRAGMENTATIONTESTSHEADERS} \
|
|---|
| 94 | ${GRAPHTESTSHEADERS} \
|
|---|
| 95 | ${LINKEDCELLTESTHEADERS} \
|
|---|
| 96 | ${LINEARALGEBRATESTSHEADERS} \
|
|---|
| 97 | ${PARSERTESTSHEADERS} \
|
|---|
| 98 | ${RANDOMNUMBERTESTSHEADERS} \
|
|---|
| 99 | ${SHAPETESTSHEADERS} \
|
|---|
| 100 | ${TESSELATIONTESTSHEADERS} \
|
|---|
| 101 | $(UIELEMENTSCOMMANDLINEPARSERTESTSHEADERS) \
|
|---|
| 102 | ${UIELEMENTSMENUTESTSHEADERS} \
|
|---|
| 103 | stubs/ObserverStub.hpp \
|
|---|
| 104 | BoxUnitTest.hpp \
|
|---|
| 105 | Box_BoundaryConditionsUnitTest.hpp \
|
|---|
| 106 | FormulaUnitTest.hpp \
|
|---|
| 107 | ListOfBondsUnitTest.hpp \
|
|---|
| 108 | WorldTimeUnitTest.hpp
|
|---|
| 109 |
|
|---|
| 110 |
|
|---|
| 111 | BoxUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 112 | BoxUnitTest.cpp \
|
|---|
| 113 | BoxUnitTest.hpp \
|
|---|
| 114 | stubs/ObserverStub.cpp \
|
|---|
| 115 | stubs/ObserverStub.hpp
|
|---|
| 116 | BoxUnitTest_LDADD = \
|
|---|
| 117 | ../libMolecuilder.la \
|
|---|
| 118 | ../libMolecuilderShapes.la \
|
|---|
| 119 | ../libMolecuilderHelpers.la \
|
|---|
| 120 | $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la
|
|---|
| 121 |
|
|---|
| 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 |
|
|---|
| 131 | FormulaUnittest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 132 | FormulaUnitTest.cpp \
|
|---|
| 133 | FormulaUnitTest.hpp
|
|---|
| 134 | FormulaUnittest_LDADD = $(ALLLIBS)
|
|---|
| 135 |
|
|---|
| 136 | ListOfBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
|
|---|
| 137 | ListOfBondsUnitTest.cpp \
|
|---|
| 138 | ListOfBondsUnitTest.hpp
|
|---|
| 139 | ListOfBondsUnitTest_LDADD = $(ALLLIBS)
|
|---|
| 140 |
|
|---|
| 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 |
|
|---|
| 149 | TestRunner_SOURCES = TestRunnerMain.cpp $(TESTSOURCES) $(TESTHEADERS)
|
|---|
| 150 | TestRunner_LDADD = ${UILIBS} ${ALLLIBS}
|
|---|
| 151 |
|
|---|
| 152 | #AUTOMAKE_OPTIONS = parallel-tests
|
|---|