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