1 #-----------------------------------------------------------------------------
2 # VTK GDCM Reader subdir
3 # Rebuild gdcm whenever a file starting with vtk* is modified
4 INCLUDE_REGULAR_EXPRESSION("^vtk.*$")
6 #-----------------------------------------------------------------------------
7 # Include the VTK library
8 INCLUDE(${VTK_USE_FILE})
10 # Need gdcm header files
12 ${GDCM_SOURCE_DIR}/src/
21 #-----------------------------------------------------------------------------
22 # Create vtkgdcm library
23 ADD_LIBRARY(vtkgdcm ${VTKGDCM_LIB_SRCS})
24 TARGET_LINK_LIBRARIES(vtkgdcm
31 #-----------------------------------------------------------------------------
32 SET(vtkgdcmdemo_SOURCES
35 ADD_EXECUTABLE(vtkgdcmdemo ${vtkgdcmdemo_SOURCES})
36 TARGET_LINK_LIBRARIES(vtkgdcmdemo
42 #-----------------------------------------------------------------------------
43 SET(vtkgdcmViewer_SOURCES
46 ADD_EXECUTABLE(vtkgdcmViewer ${vtkgdcmViewer_SOURCES})
47 TARGET_LINK_LIBRARIES(vtkgdcmViewer
51 ADD_EXECUTABLE(vtkgdcmViewer2 vtkgdcmViewer2.cxx)
52 TARGET_LINK_LIBRARIES(vtkgdcmViewer2
57 #-----------------------------------------------------------------------------
58 SET(vtkWriteDicom_SOURCES
61 ADD_EXECUTABLE(vtkWriteDicom ${vtkWriteDicom_SOURCES})
62 TARGET_LINK_LIBRARIES(vtkWriteDicom
68 #-----------------------------------------------------------------------------
70 INSTALL_FILES(/include FILES vtkGdcmReader.h)
71 INSTALL_FILES(/include FILES vtkGdcmWriter.h)
73 INSTALL_TARGETS(/lib/ vtkgdcm)