* tests/Makefile.am (all_headers_CPPFLAGS, all_headers_LDFLAGS)
* tests/io/dicom/Makefile.am (AM_CPPFLAGS, AM_LDFLAGS):
New.
---
milena/ChangeLog | 8 ++++++++
milena/tests/Makefile.am | 5 +++++
milena/tests/io/dicom/Makefile.am | 3 +++
3 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 081cf0b..cf6a1fc 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,13 @@
2009-06-10 Roland Levillain <roland(a)lrde.epita.fr>
+ Set missing flags in Makefiles.
+
+ * tests/Makefile.am (all_headers_CPPFLAGS, all_headers_LDFLAGS)
+ * tests/io/dicom/Makefile.am (AM_CPPFLAGS, AM_LDFLAGS):
+ New.
+
+2009-06-10 Roland Levillain <roland(a)lrde.epita.fr>
+
Do not exercise parts depening on optional dependencies.
* tests/unit_test/build_unit_test.sh (HEADERS): Ignore files
diff --git a/milena/tests/Makefile.am b/milena/tests/Makefile.am
index a0124cd..18a5a76 100644
--- a/milena/tests/Makefile.am
+++ b/milena/tests/Makefile.am
@@ -75,6 +75,11 @@ check_PROGRAMS = \
global_vars
all_headers_SOURCES = all_headers.cc
+all_headers_CPPFLAGS = $(AM_CPPFLAGS) \
+ $(CFITSIO_CPPFLAGS) $(GDCM_CPPFLAGS) $(MAGICKXX_CPPFLAGS) $(TIFF_CPPFLAGS)
+all_headers_LDFLAGS = \
+ $(CFITSIO_LDFLAGS) $(GDCM_LDFLAGS) $(MAGICKXX_LDFLAGS) $(TIFF_LDFLAGS)
+
essential_headers_SOURCES = essential_headers.cc
global_vars_SOURCES = global_vars1.cc global_vars2.cc
diff --git a/milena/tests/io/dicom/Makefile.am b/milena/tests/io/dicom/Makefile.am
index 67d73a4..da98219 100644
--- a/milena/tests/io/dicom/Makefile.am
+++ b/milena/tests/io/dicom/Makefile.am
@@ -21,6 +21,9 @@ include $(top_srcdir)/milena/tests/tests.mk
check_PROGRAMS = dicom
+AM_CPPFLAGS += $(GDCM_CPPFLAGS)
+AM_LDFLAGS = $(GDCM_LDFLAGS)
+
# FIXME: Upon completion, if this test only read (not write) images,
# rename it as load.cc
dicom_SOURCES = dicom.cc
--
1.6.1.2
Show replies by date