]> Creatis software - gdcm.git/blobdiff - vtk/CMakeLists.txt
ENH: Afterall change my mind we need a common place: gdcmJpeg to define the reading...
[gdcm.git] / vtk / CMakeLists.txt
index a9a19244dae2d22893f1ff9beed786170761cee4..6b2fa6b57ac78452de006db2d321a1f07a1f9a91 100644 (file)
@@ -5,6 +5,7 @@
 # Need gdcm header files\r
 INCLUDE_DIRECTORIES(\r
   ${GDCM_SOURCE_DIR}/src/\r
+  ${GDCM_BINARY_DIR}/\r
 )\r
 \r
 SET(VTKGDCM_LIB_SRCS\r
@@ -22,10 +23,8 @@ TARGET_LINK_LIBRARIES(vtkgdcm
 )\r
 \r
 #-----------------------------------------------------------------------------\r
-# See with frog why m4 didn't link to lib, and include cxx file instead ?\r
 SET(vtkgdcmdemo_SOURCES\r
-  testvtkGdcmReader.cxx\r
-#  vtkGdcmReader.cxx\r
+  vtkGdcmDemo.cxx\r
 )\r
 ADD_EXECUTABLE(vtkgdcmdemo ${vtkgdcmdemo_SOURCES})\r
 TARGET_LINK_LIBRARIES(vtkgdcmdemo \r
@@ -35,10 +34,8 @@ TARGET_LINK_LIBRARIES(vtkgdcmdemo
 )\r
 \r
 #-----------------------------------------------------------------------------\r
-# See with frog why m4 didn't link to lib, and include cxx file instead ?\r
 SET(vtkgdcmViewer_SOURCES\r
   vtkgdcmViewer.cxx\r
-  #vtkGdcmReader.cxx \r
 )\r
 ADD_EXECUTABLE(vtkgdcmViewer ${vtkgdcmViewer_SOURCES})\r
 TARGET_LINK_LIBRARIES(vtkgdcmViewer \r
@@ -47,4 +44,6 @@ TARGET_LINK_LIBRARIES(vtkgdcmViewer
 )\r
 \r
 # Install vtk header\r
-INSTALL_FILES(/include FILES vtkGdcmReader.h)
\ No newline at end of file
+INSTALL_FILES(/include FILES vtkGdcmReader.h)\r
+\r
+INSTALL_TARGETS(/lib/ vtkgdcm)\r