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