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