]> Creatis software - gdcm.git/blobdiff - vtk/CMakeLists.txt
ENH: Paranoid rebuild each time something change...should help problem on a continuou...
[gdcm.git] / vtk / CMakeLists.txt
index 9a6f916393e05b1c5eabdbe4090ab200d3a7d112..da5acb647a8bb76c5bc2f92f74d21c5057e5dd9d 100644 (file)
@@ -1,5 +1,7 @@
 #-----------------------------------------------------------------------------
 # VTK GDCM Reader subdir
+# Rebuild gdcm whenever a file starting with vtk* is modified
+INCLUDE_REGULAR_EXPRESSION("^vtk.*$")
 
 #-----------------------------------------------------------------------------
 # Include the VTK library
@@ -46,6 +48,11 @@ TARGET_LINK_LIBRARIES(vtkgdcmViewer
   vtkgdcm
   vtkRendering
 )
+ADD_EXECUTABLE(vtkgdcmViewer2 vtkgdcmViewer2.cxx)
+TARGET_LINK_LIBRARIES(vtkgdcmViewer2
+  vtkgdcm
+  vtkRendering
+)
 
 #-----------------------------------------------------------------------------
 SET(vtkWriteDicom_SOURCES
@@ -58,18 +65,6 @@ TARGET_LINK_LIBRARIES(vtkWriteDicom
   vtkRendering
 )
 
-#-----------------------------------------------------------------------------
-SET(GdcmToBaseline_SOURCES
-  GdcmToBaseline.cxx
-)
-ADD_EXECUTABLE(GdcmToBaseline ${GdcmToBaseline_SOURCES})
-TARGET_LINK_LIBRARIES(GdcmToBaseline
-  vtkgdcm
-  vtkIO
-  vtkImaging
-  vtkRendering
-)
-
 #-----------------------------------------------------------------------------
 # Install vtk header
 INSTALL_FILES(/include FILES vtkGdcmReader.h)