source: src/Parser/unittests/Makefile.am@ 97dff0

Last change on this file since 97dff0 was eb0d77, checked in by Frederik Heber <heber@…>, 12 years ago

FIX: Shared library libMolecuilderJobs needs to be given explicitly where brought in dependently.

  • in my eyes, this is a libtool bug (see #1002565 on ubuntu's launchpad) as libtool should pull in shared libraries that are list as dependencies in given shared libraries (and also known to libtool according to the .la file). However, libtool.m4 has a switch find_all_dep_libs which is set to no for linux systems. Activating it causes the correct linking behavior but faults later because shared libraries are not found (i.e. some rpath problem).
  • Hence, libMolecuilderJobs.la is given as dependency everywhere where also libMolecuilderUI is listed (also for all unit tests).
  • Property mode set to 100644
File size: 3.2 KB
Line 
1# PLEASE adhere to the alphabetical ordering in this Makefile!
2# Also indentation by a single tab
3
4include ../../src/Parser/Parameters/unittests/Makefile.am
5
6PARSERTESTSSOURCES = \
7 ../Parser/unittests/ParserMpqcUnitTest.cpp \
8 ../Parser/unittests/ParserPcpUnitTest.cpp \
9 ../Parser/unittests/ParserPdbUnitTest.cpp \
10 ../Parser/unittests/ParserPsi3UnitTest.cpp \
11 ../Parser/unittests/ParserTremoloUnitTest.cpp \
12 ../Parser/unittests/ParserTremolo_ElementKeysUnitTest.cpp \
13 ../Parser/unittests/ParserXmlUnitTest.cpp \
14 ../Parser/unittests/ParserXyzUnitTest.cpp
15
16PARSERTESTSHEADERS = \
17 ../Parser/unittests/ParserMpqcUnitTest.hpp \
18 ../Parser/unittests/ParserPcpUnitTest.hpp \
19 ../Parser/unittests/ParserPdbUnitTest.hpp \
20 ../Parser/unittests/ParserPsi3UnitTest.hpp \
21 ../Parser/unittests/ParserTremoloUnitTest.hpp \
22 ../Parser/unittests/ParserTremolo_ElementKeysUnitTest.hpp \
23 ../Parser/unittests/ParserXmlUnitTest.hpp \
24 ../Parser/unittests/ParserXyzUnitTest.hpp
25
26PARSERTESTS = \
27 ParserMpqcUnitTest \
28 ParserPcpUnitTest \
29 ParserPdbUnitTest \
30 ParserPsi3UnitTest \
31 ParserTremoloUnitTest \
32 ParserTremolo_ElementKeysUnitTest \
33 ParserXmlUnitTest \
34 ParserXyzUnitTest
35
36TESTS += $(PARSERTESTS)
37check_PROGRAMS += $(PARSERTESTS)
38noinst_PROGRAMS += $(PARSERTESTS)
39
40PARSERLIBS = \
41 ../libMolecuilderUI.la
42if CONDJOBMARKET
43PARSERLIBS += \
44 ../libMolecuilderJobs.la
45endif
46PARSERLIBS += \
47 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
48 ${CodePatterns_LIBS}
49# $(BOOST_LIB)
50
51
52ParserMpqcUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
53 ../Parser/unittests/ParserMpqcUnitTest.cpp \
54 ../Parser/unittests/ParserMpqcUnitTest.hpp
55ParserMpqcUnitTest_LDADD = ${PARSERLIBS}
56
57ParserPcpUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
58 ../Parser/unittests/ParserPcpUnitTest.cpp \
59 ../Parser/unittests/ParserPcpUnitTest.hpp
60ParserPcpUnitTest_LDADD = ${PARSERLIBS}
61
62ParserPdbUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
63 ../Parser/unittests/ParserPdbUnitTest.cpp \
64 ../Parser/unittests/ParserPdbUnitTest.hpp
65ParserPdbUnitTest_LDADD = ${PARSERLIBS}
66
67ParserPsi3UnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
68 ../Parser/unittests/ParserPsi3UnitTest.cpp \
69 ../Parser/unittests/ParserPsi3UnitTest.hpp
70ParserPsi3UnitTest_LDADD = ${PARSERLIBS}
71
72ParserTremoloUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
73 ../Parser/unittests/ParserTremoloUnitTest.cpp \
74 ../Parser/unittests/ParserTremoloUnitTest.hpp
75ParserTremoloUnitTest_LDADD = ${PARSERLIBS}
76
77ParserTremolo_ElementKeysUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
78 ../Parser/unittests/ParserTremolo_ElementKeysUnitTest.cpp \
79 ../Parser/unittests/ParserTremolo_ElementKeysUnitTest.hpp
80ParserTremolo_ElementKeysUnitTest_LDADD = ${PARSERLIBS}
81
82ParserXmlUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
83 ../Parser/unittests/ParserXmlUnitTest.cpp \
84 ../Parser/unittests/ParserXmlUnitTest.hpp
85ParserXmlUnitTest_LDADD = ${PARSERLIBS}
86
87ParserXyzUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
88 ../Parser/unittests/ParserXyzUnitTest.cpp \
89 ../Parser/unittests/ParserXyzUnitTest.hpp
90ParserXyzUnitTest_LDADD = ${PARSERLIBS}
91
92
93#AUTOMAKE_OPTIONS = parallel-tests
Note: See TracBrowser for help on using the repository browser.