* CMakeLists.txt : bug fix - The include of the VTK lib is made only when it's
needed (only for projects required VTK). If the VTK is included in all
projects, there is conflicts with the jpeg lib of vtk when compiling the
gdcmjpeg[8,12,16] projects. The first conflict is on the jmorecfg.h file.
* src/gdcmUtil.h : export binary_write methods. Otherwise, there's problems
when compiling the gdcm_wrap.cxx file (created by the compilation of the
gdcm.i file)
* vtk/vtkGdcmDemo.cxx : remove the use of std namespace for the cerr use
(like it's already made for the cout use). Otherwise, conflict with the
std::cerr of vtk.
-- BeNours
FIND_PACKAGE(VTK)
# If vtk found
IF(VTK_FOUND)
- INCLUDE(${VTK_USE_FILE})
+ #INCLUDE(${VTK_USE_FILE})
SUBDIRS(vtk)
ENDIF(VTK_FOUND)
ENDIF(GDCM_VTK)
+2004-11-09 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
+ * Bugs fix for the Windows build with VC6
+ * CMakeLists.txt : bug fix - The include of the VTK lib is made only when it's
+ needed (only for projects required VTK). If the VTK is included in all
+ projects, there is conflicts with the jpeg lib of vtk when compiling the
+ gdcmjpeg[8,12,16] projects. The first conflict is on the jmorecfg.h file.
+ * src/gdcmUtil.h : export binary_write methods. Otherwise, there's problems
+ when compiling the gdcm_wrap.cxx file (created by the compilation of the
+ gdcm.i file)
+ * vtk/vtkGdcmDemo.cxx : remove the use of std namespace for the cerr use
+ (like it's already made for the cout use). Otherwise, conflict with the
+ std::cerr of vtk.
+
2004-11-09 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
* src/gdcmDicomDit.h the Method typedef is now local to DicomDir class.
* gdcmPython/gdcm.i:
)
# add test that require VTK:
IF(GDCM_VTK)
+ # Include the VTK library
+ INCLUDE(${VTK_USE_FILE})
+
INCLUDE_DIRECTORIES(
${GDCM_SOURCE_DIR}/vtk/
)
SET(TEST_SOURCES ${TEST_SOURCES}
- ShowDicom.cxx
+ ShowDicom.cxx
)
ENDIF(GDCM_VTK)
ENDIF (GDCM_DATA_ROOT)
# VTK Wrapping
#
IF(GDCM_VTK)
+ # Include the VTK library
+ INCLUDE(${VTK_USE_FILE})
+
INCLUDE_DIRECTORIES(
${GDCM_SOURCE_DIR}/vtk
)
Program: gdcm
Module: $RCSfile: gdcmUtil.h,v $
Language: C++
- Date: $Date: 2004/11/05 20:23:14 $
- Version: $Revision: 1.40 $
+ Date: $Date: 2004/11/09 11:21:32 $
+ Version: $Revision: 1.41 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
static std::string DicomString(const char* s);
};
- template <class T>
- std::ostream& binary_write(std::ostream& os, const T& val);
- std::ostream& binary_write(std::ostream& os, const uint16_t& val);
- std::ostream& binary_write(std::ostream& os, const uint32_t& val);
- std::ostream& binary_write(std::ostream& os, const char* val);
- std::ostream& binary_write(std::ostream& os, std::string const & val);
+ template <class T>
+ GDCM_EXPORT std::ostream& binary_write(std::ostream& os, const T& val);
+ GDCM_EXPORT std::ostream& binary_write(std::ostream& os, const uint16_t& val);
+ GDCM_EXPORT std::ostream& binary_write(std::ostream& os, const uint32_t& val);
+ GDCM_EXPORT std::ostream& binary_write(std::ostream& os, const char* val);
+ GDCM_EXPORT std::ostream& binary_write(std::ostream& os, std::string const & val);
} // end namespace gdcm
//-----------------------------------------------------------------------------
#endif
-#-----------------------------------------------------------------------------\r
-# VTK GDCM Reader subdir\r
-\r
-#-----------------------------------------------------------------------------\r
-# Need gdcm header files\r
-INCLUDE_DIRECTORIES(\r
- ${GDCM_SOURCE_DIR}/src/\r
- ${GDCM_BINARY_DIR}/\r
-)\r
-\r
-SET(VTKGDCM_LIB_SRCS\r
- vtkGdcmReader.cxx\r
-)\r
-\r
-#-----------------------------------------------------------------------------\r
-# Create vtkgdcm library\r
-ADD_LIBRARY(vtkgdcm ${VTKGDCM_LIB_SRCS})\r
-TARGET_LINK_LIBRARIES(vtkgdcm \r
- gdcm\r
- vtkCommon\r
- vtkIO\r
- vtkFiltering\r
-)\r
-\r
-#-----------------------------------------------------------------------------\r
-SET(vtkgdcmdemo_SOURCES\r
- vtkGdcmDemo.cxx\r
-)\r
-ADD_EXECUTABLE(vtkgdcmdemo ${vtkgdcmdemo_SOURCES})\r
-TARGET_LINK_LIBRARIES(vtkgdcmdemo \r
- vtkgdcm\r
- vtkGraphics\r
- vtkRendering\r
-)\r
-\r
-#-----------------------------------------------------------------------------\r
-SET(vtkgdcmViewer_SOURCES\r
- vtkgdcmViewer.cxx\r
-)\r
-ADD_EXECUTABLE(vtkgdcmViewer ${vtkgdcmViewer_SOURCES})\r
-TARGET_LINK_LIBRARIES(vtkgdcmViewer \r
- vtkgdcm\r
- vtkRendering\r
-)\r
-\r
-# Install vtk header\r
-INSTALL_FILES(/include FILES vtkGdcmReader.h)\r
-\r
-INSTALL_TARGETS(/lib/ vtkgdcm)\r
+#-----------------------------------------------------------------------------
+# VTK GDCM Reader subdir
+
+#-----------------------------------------------------------------------------
+# Include the VTK library
+INCLUDE(${VTK_USE_FILE})
+
+# Need gdcm header files
+INCLUDE_DIRECTORIES(
+ ${GDCM_SOURCE_DIR}/src/
+ ${GDCM_BINARY_DIR}/
+)
+
+SET(VTKGDCM_LIB_SRCS
+ vtkGdcmReader.cxx
+)
+
+#-----------------------------------------------------------------------------
+# Create vtkgdcm library
+ADD_LIBRARY(vtkgdcm ${VTKGDCM_LIB_SRCS})
+TARGET_LINK_LIBRARIES(vtkgdcm
+ gdcm
+ vtkCommon
+ vtkIO
+ vtkFiltering
+)
+
+#-----------------------------------------------------------------------------
+SET(vtkgdcmdemo_SOURCES
+ vtkGdcmDemo.cxx
+)
+ADD_EXECUTABLE(vtkgdcmdemo ${vtkgdcmdemo_SOURCES})
+TARGET_LINK_LIBRARIES(vtkgdcmdemo
+ vtkgdcm
+ vtkGraphics
+ vtkRendering
+)
+
+#-----------------------------------------------------------------------------
+SET(vtkgdcmViewer_SOURCES
+ vtkgdcmViewer.cxx
+)
+ADD_EXECUTABLE(vtkgdcmViewer ${vtkgdcmViewer_SOURCES})
+TARGET_LINK_LIBRARIES(vtkgdcmViewer
+ vtkgdcm
+ vtkRendering
+)
+
+# Install vtk header
+INSTALL_FILES(/include FILES vtkGdcmReader.h)
+
+INSTALL_TARGETS(/lib/ vtkgdcm)
+
-// $Header: /cvs/public/gdcm/vtk/vtkGdcmDemo.cxx,v 1.1 2004/10/01 12:40:58 frog Exp $
+// $Header: /cvs/public/gdcm/vtk/vtkGdcmDemo.cxx,v 1.2 2004/11/09 11:21:33 regrain Exp $
//----------------------------------------------------------------------------
// A simple straightfoward example of vtkGdcmReader vtk class usage.
if (argc < 2)
{
- std::cerr << "Usage: " << argv[0] << " image.dcm\n";
+ cerr << "Usage: " << argv[0] << " image.dcm\n";
return 0;
}