source: src/LinkedCell/unittests/Makefile.am@ 1ae9aa

Last change on this file since 1ae9aa was eb0d77, checked in by Frederik Heber <heber@…>, 13 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.4 KB
Line 
1# PLEASE adhere to the alphabetical ordering in this Makefile!
2# Also indentation by a single tab
3
4LINKEDCELLTESTSSOURCES = \
5 ../LinkedCell/unittests/LinkedCellUnitTest.cpp \
6 ../LinkedCell/unittests/LinkedCell_ControllerUnitTest.cpp \
7 ../LinkedCell/unittests/LinkedCell_ModelUnitTest.cpp \
8 ../LinkedCell/unittests/LinkedCell_ViewUnitTest.cpp \
9 ../LinkedCell/unittests/linkedcellUnitTest.cpp
10
11LINKEDCELLTESTSHEADERS = \
12 ../LinkedCell/PointCloudAdaptor.hpp \
13 ../LinkedCell/unittests/LinkedCellUnitTest.hpp \
14 ../LinkedCell/unittests/LinkedCell_ControllerUnitTest.hpp \
15 ../LinkedCell/unittests/LinkedCell_ModelUnitTest.hpp \
16 ../LinkedCell/unittests/LinkedCell_ViewUnitTest.hpp \
17 ../LinkedCell/unittests/linkedcellUnitTest.hpp
18
19LINKEDCELLTESTS = \
20 LinkedCellUnitTest \
21 LinkedCell_ControllerUnitTest \
22 LinkedCell_ModelUnitTest \
23 LinkedCell_ViewUnitTest \
24 linkedcellUnitTest
25
26TESTS += $(LINKEDCELLTESTS)
27check_PROGRAMS += $(LINKEDCELLTESTS)
28noinst_PROGRAMS += $(LINKEDCELLTESTS)
29
30LINKEDCELLLIBS = \
31 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
32 ${CodePatterns_LIBS} \
33 $(BOOST_LIB)
34
35linkedcellUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
36 ../LinkedCell/unittests/linkedcellUnitTest.cpp \
37 ../LinkedCell/unittests/linkedcellUnitTest.hpp
38linkedcellUnitTest_LDADD = \
39 ../libMolecuilderUI.la \
40 ../libMolecuilder.la
41if CONDJOBMARKET
42linkedcellUnitTest_LDADD += \
43 ../libMolecuilderJobs.la
44endif
45linkedcellUnitTest_LDADD += \
46 $(LINKEDCELLLIBS)
47
48LinkedCellUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
49 ../LinkedCell/unittests/LinkedCellUnitTest.cpp \
50 ../LinkedCell/unittests/LinkedCellUnitTest.hpp \
51 ../LinkedCell/unittests/stubs/TesselPointStub.cpp
52LinkedCellUnitTest_LDADD = \
53 ../libMolecuilderLinkedCell.la \
54 $(LINKEDCELLLIBS)
55
56LinkedCell_ControllerUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
57 ../LinkedCell/unittests/LinkedCell_ControllerUnitTest.cpp \
58 ../LinkedCell/unittests/LinkedCell_ControllerUnitTest.hpp \
59 ../LinkedCell/unittests/defs.hpp \
60 stubs/AtomStub.cpp \
61 ../LinkedCell/unittests/stubs/AtomObserverStub.cpp \
62 ../LinkedCell/unittests/stubs/ObserverBoxStub.cpp \
63 ../LinkedCell/unittests/stubs/TesselPointStub.cpp \
64 ../LinkedCell/unittests/stubs/WorldTimeStub.cpp \
65 stubs/WorldStub.cpp \
66 ../LinkedCell/PointCloudAdaptor.hpp \
67 ../Box_BoundaryConditions.cpp \
68 ../Box_BoundaryConditions.hpp
69LinkedCell_ControllerUnitTest_LDADD = \
70 ../libMolecuilderLinkedCell.la \
71 $(LINKEDCELLLIBS)
72
73LinkedCell_ModelUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
74 ../LinkedCell/unittests/LinkedCell_ModelUnitTest.cpp \
75 ../LinkedCell/unittests/LinkedCell_ModelUnitTest.hpp \
76 ../LinkedCell/unittests/defs.hpp
77LinkedCell_ModelUnitTest_LDADD = \
78 ../libMolecuilderUI.la \
79 ../libMolecuilder.la
80if CONDJOBMARKET
81LinkedCell_ModelUnitTest_LDADD += \
82 ../libMolecuilderJobs.la
83endif
84LinkedCell_ModelUnitTest_LDADD += \
85 $(LINKEDCELLLIBS)
86
87LinkedCell_ViewUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
88 ../LinkedCell/unittests/LinkedCell_ViewUnitTest.cpp \
89 ../LinkedCell/unittests/LinkedCell_ViewUnitTest.hpp \
90 ../LinkedCell/unittests/defs.hpp \
91 ../LinkedCell/PointCloudAdaptor.hpp
92LinkedCell_ViewUnitTest_LDADD = \
93 ../libMolecuilderUI.la \
94 ../libMolecuilder.la
95if CONDJOBMARKET
96LinkedCell_ViewUnitTest_LDADD += \
97 ../libMolecuilderJobs.la
98endif
99LinkedCell_ViewUnitTest_LDADD += \
100 $(LINKEDCELLLIBS)
101
102
103#AUTOMAKE_OPTIONS = parallel-tests
Note: See TracBrowser for help on using the repository browser.