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 #-----------------------------------------------------------------------------
77 SET(vtkWriteDicom_SOURCES
80 ADD_EXECUTABLE(vtkWriteDicom ${vtkWriteDicom_SOURCES})
81 TARGET_LINK_LIBRARIES(vtkWriteDicom
87 #-----------------------------------------------------------------------------
89 INSTALL_FILES(/include/gdcm FILES vtkGdcmReader.h)
90 INSTALL_FILES(/include/gdcm FILES vtkGdcmWriter.h)
92 INSTALL_TARGETS(/lib/gdcm/ vtkgdcm)
93 INSTALL_TARGETS(/bin/ vtkgdcmViewer)
94 INSTALL_TARGETS(/bin/ vtkgdcmViewer2)
95 INSTALL_TARGETS(/bin/ vtkgdcmSerieViewer)