# PLEASE adhere to the alphabetical ordering in this Makefile! # Also indentation by a single tab check_PROGRAMS = noinst_PROGRAMS = TESTS = XFAIL_TESTS = MOSTLYCLEANFILES = if CONDCPPUNIT include ../../src/Actions/unittests/Makefile.am include ../../src/Analysis/unittests/Makefile.am include ../../src/Atom/unittests/Makefile.am include ../../src/Descriptors/unittests/Makefile.am include ../../src/Element/unittests/Makefile.am include ../../src/Filling/unittests/Makefile.am include ../../src/FunctionApproximation/unittests/Makefile.am include ../../src/Fragmentation/unittests/Makefile.am include ../../src/Fragmentation/Exporters/unittests/Makefile.am include ../../src/Fragmentation/Homology/unittests/Makefile.am include ../../src/Fragmentation/Summation/unittests/Makefile.am include ../../src/Fragmentation/Summation/Containers/unittests/Makefile.am include ../../src/Fragmentation/Summation/SetValues/unittests/Makefile.am include ../../src/Graph/unittests/Makefile.am if CONDJOBMARKET include ../../src/Jobs/unittests/Makefile.am endif include ../../src/LinkedCell/unittests/Makefile.am include ../../src/Parameters/unittests/Makefile.am include ../../src/Parser/unittests/Makefile.am include ../../src/Potentials/unittests/Makefile.am include ../../src/Potentials/Specifics/unittests/Makefile.am include ../../src/RandomNumbers/unittests/Makefile.am include ../../src/Shapes/unittests/Makefile.am include ../../src/Tesselation/unittests/Makefile.am include ../../src/UIElements/CommandLineUI/unittests/Makefile.am include ../../src/UIElements/Menu/unittests/Makefile.am INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/LinearAlgebra/src AM_LDFLAGS = \ ${CodePatterns_LIBS} \ $(CPPUNIT_LIBS) \ -ldl AM_CPPFLAGS = ${BOOST_CPPFLAGS} $(CPPUNIT_CFLAGS) ${CodePatterns_CFLAGS} GENERALTESTS = \ AtomIdSetUnitTest \ BoxUnitTest \ Box_BoundaryConditionsTest \ FormulaUnittest \ ListOfBondsUnitTest \ MoleculeUnitTest \ WorldTimeUnitTest # these ones are checked TESTS += $(GENERALTESTS) # these ones are built for checking only check_PROGRAMS += $(GENERALTESTS) # ... and not installed noinst_PROGRAMS += $(GENERALTESTS) if CONDECUT noinst_PROGRAMS += TestRunner endif BOOST_LIB = \ $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LIBS) \ $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_FILESYSTEM_LIBS) \ $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS) \ $(BOOST_SYSTEM_LDFLAGS) $(BOOST_SYSTEM_LIBS) \ $(BOOST_THREAD_LDFLAGS) $(BOOST_THREAD_LIBS) GENERALLIBS = \ ../libMolecuilder.la \ $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \ ${CodePatterns_LIBS} \ $(BOOST_LIB) ALLLIBS = \ ../libMolecuilderUI.la if CONDJOBMARKET ALLLIBS += \ ../libMolecuilderJobs.la endif ALLLIBS += \ $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \ ${CodePatterns_LIBS} \ $(BOOST_LIB) TESTSOURCES = \ ${ACTIONTESTSSOURCES} \ ${ANALYSISTESTSSOURCES} \ ${DESCRIPTORTESTSSOURCES} \ ${ELEMENTTESTSSOURCES} \ ${FILLINGTESTSSOURCES} \ ${FRAGMENTATIONTESTSSOURCES} \ ${GRAPHTESTSSOURCES} \ ${LINKEDCELLTESTSSOURCES} \ ${LINEARALGEBRATESTSSOURCES} \ ${PARAMETERTESTSSOURCES} \ ${PARSERTESTSSOURCES} \ ${RANDOMNUMBERTESTSSOURCES} \ ${SHAPETESTSSOURCES} \ ${TESSELATIONTESTSSOURCES} \ $(UIELEMENTSCOMMANDLINEPARSERTESTSSOURCES) \ ${UIELEMENTSMENUTESTSSOURCES} \ stubs/ObserverStub.cpp \ AtomIdSetUnitTest.cpp \ BoxUnitTest.cpp \ Box_BoundaryConditionsUnitTest.cpp \ FormulaUnitTest.cpp \ ListOfBondsUnitTest.cpp \ MoleculeUnitTest.cpp \ WorldTimeUnitTest.cpp TESTHEADERS = \ ${ACTIONTESTSHEADERS} \ ${ANALYSISTESTSHEADERS} \ ${DESCRIPTORTESTSHEADERS} \ ${ELEMENTTESTSHEADERS} \ ${FILLINGTESTSHEADERS} \ ${FRAGMENTATIONTESTSHEADERS} \ ${GRAPHTESTSHEADERS} \ ${LINKEDCELLTESTHEADERS} \ ${LINEARALGEBRATESTSHEADERS} \ ${PARAMETERTESTSHEADERS} \ ${PARSERTESTSHEADERS} \ ${RANDOMNUMBERTESTSHEADERS} \ ${SHAPETESTSHEADERS} \ ${TESSELATIONTESTSHEADERS} \ $(UIELEMENTSCOMMANDLINEPARSERTESTSHEADERS) \ ${UIELEMENTSMENUTESTSHEADERS} \ stubs/ObserverStub.hpp \ AtomIdSetUnitTest.hpp \ BoxUnitTest.hpp \ Box_BoundaryConditionsUnitTest.hpp \ FormulaUnitTest.hpp \ ListOfBondsUnitTest.hpp \ MoleculeUnitTest.hpp \ WorldTimeUnitTest.hpp BoxUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ BoxUnitTest.cpp \ BoxUnitTest.hpp \ stubs/ObserverStub.cpp \ stubs/ObserverStub.hpp \ ../Shapes/unittests/stubs/ApproximateShapeAreaStub.cpp \ ../Shapes/unittests/stubs/ApproximateShapeVolumeStub.cpp BoxUnitTest_LDADD = \ ../libMolecuilder.la \ ../libMolecuilderShapes.la \ ../libMolecuilderHelpers.la \ $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \ ${CodePatterns_LIBS} \ $(BOOST_LIB) AtomIdSetUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ AtomIdSetUnitTest.cpp \ AtomIdSetUnitTest.hpp AtomIdSetUnitTest_LDADD = $(ALLLIBS) Box_BoundaryConditionsTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ Box_BoundaryConditionsUnitTest.cpp \ Box_BoundaryConditionsUnitTest.hpp \ ../Box_BoundaryConditions.cpp \ ../Box_BoundaryConditions.hpp Box_BoundaryConditionsTest_LDADD = \ ${CodePatterns_LIBS} \ $(BOOST_LIB) FormulaUnittest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ FormulaUnitTest.cpp \ FormulaUnitTest.hpp FormulaUnittest_LDADD = $(ALLLIBS) ListOfBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ ListOfBondsUnitTest.cpp \ ListOfBondsUnitTest.hpp ListOfBondsUnitTest_LDADD = $(ALLLIBS) MoleculeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ MoleculeUnitTest.cpp \ MoleculeUnitTest.hpp MoleculeUnitTest_LDADD = \ $(ALLLIBS) \ ../libMolecuilderShapes.la \ ../libMolecuilderHelpers.la WorldTimeUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ WorldTimeUnitTest.cpp \ WorldTimeUnitTest.hpp \ ../WorldTime.cpp \ ../WorldTime.hpp WorldTimeUnitTest_LDADD = ${BOOST_LIB} TestRunner_SOURCES = TestRunnerMain.cpp $(TESTSOURCES) $(TESTHEADERS) TestRunner_LDADD = ${UILIBS} ${ALLLIBS} #AUTOMAKE_OPTIONS = parallel-tests endif