]> Creatis software - gdcm.git/blob - vtk/CMakeLists.txt
* Test/ShowDicom.cxx : now can be used with an off-screen rendering to
[gdcm.git] / vtk / CMakeLists.txt
1 #-----------------------------------------------------------------------------
2 # VTK GDCM Reader subdir
3
4 #-----------------------------------------------------------------------------
5 # Include the VTK library
6 INCLUDE(${VTK_USE_FILE})
7
8 # Need gdcm header files
9 INCLUDE_DIRECTORIES(
10   ${GDCM_SOURCE_DIR}/src/
11   ${GDCM_BINARY_DIR}/
12 )
13
14 SET(VTKGDCM_LIB_SRCS
15   vtkGdcmReader.cxx
16 )
17
18 #-----------------------------------------------------------------------------
19 # Create vtkgdcm library
20 ADD_LIBRARY(vtkgdcm ${VTKGDCM_LIB_SRCS})
21 TARGET_LINK_LIBRARIES(vtkgdcm
22   gdcm
23   vtkCommon
24   vtkIO
25   vtkFiltering
26 )
27
28 #-----------------------------------------------------------------------------
29 SET(vtkgdcmdemo_SOURCES
30   vtkGdcmDemo.cxx
31 )
32 ADD_EXECUTABLE(vtkgdcmdemo ${vtkgdcmdemo_SOURCES})
33 TARGET_LINK_LIBRARIES(vtkgdcmdemo
34   vtkgdcm
35   vtkGraphics
36   vtkRendering
37 )
38
39 #-----------------------------------------------------------------------------
40 SET(vtkgdcmViewer_SOURCES
41   vtkgdcmViewer.cxx
42 )
43 ADD_EXECUTABLE(vtkgdcmViewer ${vtkgdcmViewer_SOURCES})
44 TARGET_LINK_LIBRARIES(vtkgdcmViewer
45   vtkgdcm
46   vtkRendering
47 )
48
49 #-----------------------------------------------------------------------------
50 SET(GdcmToBaseline_SOURCES
51   GdcmToBaseline.cxx
52 )
53 ADD_EXECUTABLE(GdcmToBaseline ${GdcmToBaseline_SOURCES})
54 TARGET_LINK_LIBRARIES(GdcmToBaseline
55   vtkgdcm
56   vtkIO
57   vtkImaging
58   vtkRendering
59 )
60
61 #-----------------------------------------------------------------------------
62 # Install vtk header
63 INSTALL_FILES(/include FILES vtkGdcmReader.h)
64
65 INSTALL_TARGETS(/lib/ vtkgdcm)
66