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
47 # let's do some APPLE/WIN32 magic here
49 # SET(GUI_EXECUTABLE WIN32)
53 SET(GUI_EXECUTABLE MACOSX_BUNDLE)
56 SET(GUI_EXECUTABLE MACOSX_BUNDLE)
58 # when using X11 on Apple you don't need this...
61 ADD_EXECUTABLE(vtkgdcmViewer ${GUI_EXECUTABLE} ${vtkgdcmViewer_SOURCES})
62 TARGET_LINK_LIBRARIES(vtkgdcmViewer
66 ADD_EXECUTABLE(vtkgdcmViewer2 ${GUI_EXECUTABLE} vtkgdcmViewer2.cxx)
67 TARGET_LINK_LIBRARIES(vtkgdcmViewer2
71 ADD_EXECUTABLE(vtkgdcmSerieViewer ${GUI_EXECUTABLE} vtkgdcmSerieViewer.cxx)
72 TARGET_LINK_LIBRARIES(vtkgdcmSerieViewer
76 ADD_EXECUTABLE(vtkgdcmSerieViewer2 ${GUI_EXECUTABLE} vtkgdcmSerieViewer2.cxx)
77 TARGET_LINK_LIBRARIES(vtkgdcmSerieViewer2
83 #-----------------------------------------------------------------------------
84 SET(vtkWriteDicom_SOURCES
87 SET(vtkWriteDicomExtended_SOURCES
88 vtkWriteDicomExtended.cxx
90 ADD_EXECUTABLE(vtkWriteDicom ${vtkWriteDicom_SOURCES})
91 TARGET_LINK_LIBRARIES(vtkWriteDicom
96 ADD_EXECUTABLE(vtkWriteDicomExtended ${vtkWriteDicomExtended_SOURCES})
97 TARGET_LINK_LIBRARIES(vtkWriteDicomExtended
102 #-----------------------------------------------------------------------------
104 INSTALL_FILES(/include/gdcm FILES vtkGdcmReader.h)
105 INSTALL_FILES(/include/gdcm FILES vtkGdcmWriter.h)
107 INSTALL_TARGETS(/lib/gdcm/ vtkgdcm)
108 INSTALL_TARGETS(/bin/ vtkgdcmViewer)
109 INSTALL_TARGETS(/bin/ vtkgdcmViewer2)
110 INSTALL_TARGETS(/bin/ vtkgdcmSerieViewer)