| 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 | XFAIL_TESTS =
|
|---|
| 8 | MOSTLYCLEANFILES =
|
|---|
| 9 | noinst_LTLIBRARIES =
|
|---|
| 10 |
|
|---|
| 11 | #AUTOMAKE_OPTIONS = no-dependencies
|
|---|
| 12 |
|
|---|
| 13 | if CONDCPPUNIT
|
|---|
| 14 |
|
|---|
| 15 | include ../../src/Actions/unittests/Makefile.am
|
|---|
| 16 | include ../../src/Analysis/unittests/Makefile.am
|
|---|
| 17 | include ../../src/Atom/unittests/Makefile.am
|
|---|
| 18 | include ../../src/Descriptors/unittests/Makefile.am
|
|---|
| 19 | include ../../src/Dynamics/unittests/Makefile.am
|
|---|
| 20 | include ../../src/Element/unittests/Makefile.am
|
|---|
| 21 | include ../../src/Filling/unittests/Makefile.am
|
|---|
| 22 | include ../../src/FunctionApproximation/unittests/Makefile.am
|
|---|
| 23 | include ../../src/Fragmentation/unittests/Makefile.am
|
|---|
| 24 | include ../../src/Fragmentation/Exporters/unittests/Makefile.am
|
|---|
| 25 | include ../../src/Fragmentation/Homology/unittests/Makefile.am
|
|---|
| 26 | include ../../src/Fragmentation/Summation/unittests/Makefile.am
|
|---|
| 27 | include ../../src/Fragmentation/Summation/Containers/unittests/Makefile.am
|
|---|
| 28 | include ../../src/Fragmentation/Summation/SetValues/unittests/Makefile.am
|
|---|
| 29 | include ../../src/Graph/unittests/Makefile.am
|
|---|
| 30 |
|
|---|
| 31 | if CONDJOBMARKET
|
|---|
| 32 | include ../../src/Jobs/unittests/Makefile.am
|
|---|
| 33 | endif
|
|---|
| 34 |
|
|---|
| 35 | include ../../src/LinkedCell/unittests/Makefile.am
|
|---|
| 36 | include ../../src/Parameters/unittests/Makefile.am
|
|---|
| 37 | include ../../src/Parser/unittests/Makefile.am
|
|---|
| 38 | include ../../src/Potentials/unittests/Makefile.am
|
|---|
| 39 | include ../../src/Potentials/Specifics/unittests/Makefile.am
|
|---|
| 40 | include ../../src/RandomNumbers/unittests/Makefile.am
|
|---|
| 41 | include ../../src/Shapes/unittests/Makefile.am
|
|---|
| 42 | include ../../src/Tesselation/unittests/Makefile.am
|
|---|
| 43 | include ../../src/UIElements/CommandLineUI/unittests/Makefile.am
|
|---|
| 44 | include ../../src/UIElements/Menu/unittests/Makefile.am
|
|---|
| 45 |
|
|---|
| 46 | AM_LDFLAGS = \
|
|---|
| 47 | $(CodePatterns_LDFLAGS) ${CodePatterns_LIBS} \
|
|---|
| 48 | $(CPPUNIT_LIBS) \
|
|---|
| 49 | -ldl
|
|---|
| 50 | AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/ThirdParty/LinearAlgebra/src ${BOOST_CPPFLAGS} $(CPPUNIT_CFLAGS) ${CodePatterns_CFLAGS}
|
|---|
| 51 |
|
|---|
| 52 | GENERALTESTS = \
|
|---|
| 53 | AtomIdSetUnitTest \
|
|---|
| 54 | BoxUnitTest \
|
|---|
| 55 | Box_BoundaryConditionsTest \
|
|---|
| 56 | FormulaUnittest \
|
|---|
| 57 | ListOfBondsUnitTest \
|
|---|
| 58 | MoleculeUnitTest \
|
|---|
| 59 | WorldTimeUnitTest
|
|---|
| 60 |
|
|---|
| 61 | # these ones are checked
|
|---|
| 62 | TESTS += $(GENERALTESTS)
|
|---|
| 63 | # these ones are built for checking only
|
|---|
| 64 | check_PROGRAMS += $(GENERALTESTS)
|
|---|
| 65 | # ... and not installed
|
|---|
| 66 | noinst_PROGRAMS += $(GENERALTESTS)
|
|---|
| 67 |
|
|---|
| 68 | if CONDECUT
|
|---|
| 69 | noinst_PROGRAMS += TestRunner
|
|---|
| 70 | endif
|
|---|
| 71 |
|
|---|
| 72 | noinst_LTLIBRARIES += libUnitTest.la
|
|---|
| 73 | libUnitTest_la_LDFLAGS = \
|
|---|
| 74 | $(AM_LDFLAGS)
|
|---|
| 75 | libUnitTest_la_LIBADD =
|
|---|
| 76 |
|
|---|
| 77 | #nobase_libUnitTest_la_include_HEADERS =
|
|---|
| 78 |
|
|---|
| 79 | ## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
|
|---|
| 80 | ## target. Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and
|
|---|
| 81 | ## will therefore be treated as if it were literally part of the target name,
|
|---|
| 82 | ## and the variable name derived from that.
|
|---|
| 83 | ## The file extension .cc is recognized by Automake, and makes it produce
|
|---|
| 84 | ## rules which invoke the C++ compiler to produce a libtool object file (.lo)
|
|---|
| 85 | ## from each source file. Note that it is not necessary to list header files
|
|---|
| 86 | ## which are already listed elsewhere in a _HEADERS variable assignment.
|
|---|
| 87 | libUnitTest_la_SOURCES = UnitTestMain.cpp
|
|---|
| 88 |
|
|---|
| 89 | ## Instruct libtool to include ABI version information in the generated shared
|
|---|
| 90 | ## library file (.so). The library ABI version is defined in configure.ac, so
|
|---|
| 91 | ## that all version information is kept in one place.
|
|---|
| 92 | #libUnitTest_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
|
|---|
| 93 |
|
|---|
| 94 | ## The generated configuration header is installed in its own subdirectory of
|
|---|
| 95 | ## $(libdir). The reason for this is that the configuration information put
|
|---|
| 96 | ## into this header file describes the target platform the installed library
|
|---|
| 97 | ## has been built for. Thus the file must not be installed into a location
|
|---|
| 98 | ## intended for architecture-independent files, as defined by the Filesystem
|
|---|
| 99 | ## Hierarchy Standard (FHS).
|
|---|
| 100 | ## The nodist_ prefix instructs Automake to not generate rules for including
|
|---|
| 101 | ## the listed files in the distribution on 'make dist'. Files that are listed
|
|---|
| 102 | ## in _HEADERS variables are normally included in the distribution, but the
|
|---|
| 103 | ## configuration header file is generated at configure time and should not be
|
|---|
| 104 | ## shipped with the source tarball.
|
|---|
| 105 | #libUnitTest_la_libincludedir = $(libdir)/MoleCuilder/include
|
|---|
| 106 | #nodist_libUnitTest_la_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
|
|---|
| 107 |
|
|---|
| 108 | ## Install the generated pkg-config file (.pc) into the expected location for
|
|---|
| 109 | ## architecture-dependent package configuration information. Occasionally,
|
|---|
| 110 | ## pkg-config files are also used for architecture-independent data packages,
|
|---|
| 111 | ## in which case the correct install location would be $(datadir)/pkgconfig.
|
|---|
| 112 | #pkgconfigdir = $(libdir)/pkgconfig
|
|---|
| 113 | #pkgconfig_DATA = $(top_builddir)/MoleCuilder.pc
|
|---|
| 114 |
|
|---|
| 115 |
|
|---|
| 116 | BOOST_LIB = \
|
|---|
| 117 | $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LIBS) \
|
|---|
| 118 | $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_FILESYSTEM_LIBS) \
|
|---|
| 119 | $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS) \
|
|---|
| 120 | $(BOOST_SYSTEM_LDFLAGS) $(BOOST_SYSTEM_LIBS) \
|
|---|
| 121 | $(BOOST_THREAD_LDFLAGS) $(BOOST_THREAD_LIBS)
|
|---|
| 122 |
|
|---|
| 123 | GENERALLIBS = \
|
|---|
| 124 | ../libMolecuilder.la \
|
|---|
| 125 | $(top_builddir)/ThirdParty/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
|---|
| 126 | ${CodePatterns_LIBS} \
|
|---|
| 127 | $(BOOST_LIB)
|
|---|
| 128 |
|
|---|
| 129 | ALLLIBS = \
|
|---|
| 130 | libUnitTest.la \
|
|---|
| 131 | ../libMolecuilder.la \
|
|---|
| 132 | ../libMolecuilderUI.la
|
|---|
| 133 | if CONDJOBMARKET
|
|---|
| 134 | ALLLIBS += \
|
|---|
| 135 | ../libMolecuilderJobs.la \
|
|---|
| 136 | ../libMolecuilderJobs_Work.la
|
|---|
| 137 | endif
|
|---|
| 138 | ALLLIBS += \
|
|---|
| 139 | $(top_builddir)/ThirdParty/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
|
|---|
| 140 | ${CodePatterns_LIBS} \
|
|---|
| 141 | $(BOOST_LIB)
|
|---|
| 142 |
|
|---|
| 143 | TESTSOURCES = \
|
|---|
| 144 | ${ACTIONTESTSSOURCES} \
|
|---|
| 145 | ${ANALYSISTESTSSOURCES} \
|
|---|
| 146 | ${DESCRIPTORTESTSSOURCES} \
|
|---|
| 147 | ${ELEMENTTESTSSOURCES} \
|
|---|
| 148 | ${FILLINGTESTSSOURCES} \
|
|---|
| 149 | ${FRAGMENTATIONTESTSSOURCES} \
|
|---|
| 150 | ${GRAPHTESTSSOURCES} \
|
|---|
| 151 | ${LINKEDCELLTESTSSOURCES} \
|
|---|
| 152 | ${LINEARALGEBRATESTSSOURCES} \
|
|---|
| 153 | ${PARAMETERTESTSSOURCES} \
|
|---|
| 154 | ${PARSERTESTSSOURCES} \
|
|---|
| 155 | ${RANDOMNUMBERTESTSSOURCES} \
|
|---|
| 156 | ${SHAPETESTSSOURCES} \
|
|---|
| 157 | ${TESSELATIONTESTSSOURCES} \
|
|---|
| 158 | $(UIELEMENTSCOMMANDLINEPARSERTESTSSOURCES) \
|
|---|
| 159 | ${UIELEMENTSMENUTESTSSOURCES} \
|
|---|
| 160 | stubs/ObserverStub.cpp \
|
|---|
| 161 | AtomIdSetUnitTest.cpp \
|
|---|
| 162 | BoxUnitTest.cpp \
|
|---|
| 163 | Box_BoundaryConditionsUnitTest.cpp \
|
|---|
| 164 | FormulaUnitTest.cpp \
|
|---|
| 165 | ListOfBondsUnitTest.cpp \
|
|---|
| 166 | MoleculeUnitTest.cpp \
|
|---|
| 167 | WorldTimeUnitTest.cpp
|
|---|
| 168 |
|
|---|
| 169 | TESTHEADERS = \
|
|---|
| 170 | ${ACTIONTESTSHEADERS} \
|
|---|
| 171 | ${ANALYSISTESTSHEADERS} \
|
|---|
| 172 | ${DESCRIPTORTESTSHEADERS} \
|
|---|
| 173 | ${ELEMENTTESTSHEADERS} \
|
|---|
| 174 | ${FILLINGTESTSHEADERS} \
|
|---|
| 175 | ${FRAGMENTATIONTESTSHEADERS} \
|
|---|
| 176 | ${GRAPHTESTSHEADERS} \
|
|---|
| 177 | ${LINKEDCELLTESTHEADERS} \
|
|---|
| 178 | ${LINEARALGEBRATESTSHEADERS} \
|
|---|
| 179 | ${PARAMETERTESTSHEADERS} \
|
|---|
| 180 | ${PARSERTESTSHEADERS} \
|
|---|
| 181 | ${RANDOMNUMBERTESTSHEADERS} \
|
|---|
| 182 | ${SHAPETESTSHEADERS} \
|
|---|
| 183 | ${TESSELATIONTESTSHEADERS} \
|
|---|
| 184 | $(UIELEMENTSCOMMANDLINEPARSERTESTSHEADERS) \
|
|---|
| 185 | ${UIELEMENTSMENUTESTSHEADERS} \
|
|---|
| 186 | stubs/ObserverStub.hpp \
|
|---|
| 187 | AtomIdSetUnitTest.hpp \
|
|---|
| 188 | BoxUnitTest.hpp \
|
|---|
| 189 | Box_BoundaryConditionsUnitTest.hpp \
|
|---|
| 190 | FormulaUnitTest.hpp \
|
|---|
| 191 | ListOfBondsUnitTest.hpp \
|
|---|
| 192 | MoleculeUnitTest.hpp \
|
|---|
| 193 | WorldTimeUnitTest.hpp
|
|---|
| 194 |
|
|---|
| 195 |
|
|---|
| 196 | BoxUnitTest_SOURCES = \
|
|---|
| 197 | BoxUnitTest.cpp \
|
|---|
| 198 | BoxUnitTest.hpp \
|
|---|
| 199 | stubs/ObserverStub.cpp \
|
|---|
| 200 | stubs/ObserverStub.hpp \
|
|---|
| 201 | ../Shapes/unittests/stubs/ApproximateShapeAreaStub.cpp \
|
|---|
| 202 | ../Shapes/unittests/stubs/ApproximateShapeVolumeStub.cpp
|
|---|
| 203 | BoxUnitTest_LDADD = \
|
|---|
| 204 | $(ALLLIBS) \
|
|---|
| 205 | ../libMolecuilderShapes.la \
|
|---|
| 206 | ../libMolecuilderHelpers.la
|
|---|
| 207 |
|
|---|
| 208 | AtomIdSetUnitTest_SOURCES = \
|
|---|
| 209 | AtomIdSetUnitTest.cpp \
|
|---|
| 210 | AtomIdSetUnitTest.hpp
|
|---|
| 211 | AtomIdSetUnitTest_LDADD = $(ALLLIBS)
|
|---|
| 212 |
|
|---|
| 213 | Box_BoundaryConditionsTest_SOURCES = \
|
|---|
| 214 | Box_BoundaryConditionsUnitTest.cpp \
|
|---|
| 215 | Box_BoundaryConditionsUnitTest.hpp
|
|---|
| 216 | Box_BoundaryConditionsTest_LDADD = \
|
|---|
| 217 | $(ALLLIBS) \
|
|---|
| 218 | ../libMolecuilderShapes.la \
|
|---|
| 219 | ../libMolecuilderHelpers.la
|
|---|
| 220 |
|
|---|
| 221 | FormulaUnittest_SOURCES = \
|
|---|
| 222 | FormulaUnitTest.cpp \
|
|---|
| 223 | FormulaUnitTest.hpp
|
|---|
| 224 | FormulaUnittest_LDADD = $(ALLLIBS)
|
|---|
| 225 |
|
|---|
| 226 | ListOfBondsUnitTest_SOURCES = \
|
|---|
| 227 | ListOfBondsUnitTest.cpp \
|
|---|
| 228 | ListOfBondsUnitTest.hpp
|
|---|
| 229 | ListOfBondsUnitTest_LDADD = $(ALLLIBS)
|
|---|
| 230 |
|
|---|
| 231 | MoleculeUnitTest_SOURCES = \
|
|---|
| 232 | MoleculeUnitTest.cpp \
|
|---|
| 233 | MoleculeUnitTest.hpp
|
|---|
| 234 | MoleculeUnitTest_LDADD = \
|
|---|
| 235 | $(ALLLIBS) \
|
|---|
| 236 | ../libMolecuilderShapes.la \
|
|---|
| 237 | ../libMolecuilderHelpers.la
|
|---|
| 238 |
|
|---|
| 239 | WorldTimeUnitTest_SOURCES = \
|
|---|
| 240 | WorldTimeUnitTest.cpp \
|
|---|
| 241 | WorldTimeUnitTest.hpp
|
|---|
| 242 | WorldTimeUnitTest_LDADD = \
|
|---|
| 243 | $(ALLLIBS) \
|
|---|
| 244 | ../libMolecuilderShapes.la \
|
|---|
| 245 | ../libMolecuilderHelpers.la
|
|---|
| 246 |
|
|---|
| 247 |
|
|---|
| 248 | TestRunner_SOURCES = TestRunnerMain.cpp $(TESTSOURCES) $(TESTHEADERS)
|
|---|
| 249 | TestRunner_LDADD = ${UILIBS} ${ALLLIBS}
|
|---|
| 250 |
|
|---|
| 251 | #AUTOMAKE_OPTIONS = parallel-tests
|
|---|
| 252 |
|
|---|
| 253 | endif
|
|---|