]> Creatis software - gdcm.git/blob - vtk/CMakeLists.txt
Now Binary data are loaded, whenever it's possible (i.e : not too long)
[gdcm.git] / vtk / CMakeLists.txt
1 #-----------------------------------------------------------------------------\r
2 # VTK GDCM Reader subdir\r
3 \r
4 #-----------------------------------------------------------------------------\r
5 # Need gdcm header files\r
6 INCLUDE_DIRECTORIES(\r
7   ${GDCM_SOURCE_DIR}/src/\r
8   ${GDCM_BINARY_DIR}/\r
9 )\r
10 \r
11 SET(VTKGDCM_LIB_SRCS\r
12   vtkGdcmReader.cxx\r
13 )\r
14 \r
15 #-----------------------------------------------------------------------------\r
16 # Create vtkgdcm library\r
17 ADD_LIBRARY(vtkgdcm ${VTKGDCM_LIB_SRCS})\r
18 TARGET_LINK_LIBRARIES(vtkgdcm \r
19   gdcm\r
20   vtkCommon\r
21   vtkIO\r
22   vtkFiltering\r
23 )\r
24 \r
25 #-----------------------------------------------------------------------------\r
26 # See with frog why m4 didn't link to lib, and include cxx file instead ?\r
27 SET(vtkgdcmdemo_SOURCES\r
28   testvtkGdcmReader.cxx\r
29 #  vtkGdcmReader.cxx\r
30 )\r
31 ADD_EXECUTABLE(vtkgdcmdemo ${vtkgdcmdemo_SOURCES})\r
32 TARGET_LINK_LIBRARIES(vtkgdcmdemo \r
33   vtkgdcm\r
34   vtkGraphics\r
35   vtkRendering\r
36 )\r
37 \r
38 #-----------------------------------------------------------------------------\r
39 # See with frog why m4 didn't link to lib, and include cxx file instead ?\r
40 SET(vtkgdcmViewer_SOURCES\r
41   vtkgdcmViewer.cxx\r
42   #vtkGdcmReader.cxx \r
43 )\r
44 ADD_EXECUTABLE(vtkgdcmViewer ${vtkgdcmViewer_SOURCES})\r
45 TARGET_LINK_LIBRARIES(vtkgdcmViewer \r
46   vtkgdcm\r
47   vtkRendering\r
48 )\r
49 \r
50 # Install vtk header\r
51 INSTALL_FILES(/include FILES vtkGdcmReader.h)\r
52 \r
53 INSTALL_TARGETS(/lib/ vtkgdcm)\r