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