X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vtk%2FCMakeLists.txt;h=da5acb647a8bb76c5bc2f92f74d21c5057e5dd9d;hb=2d0e9c5025745200bad0333063203240cfe4a6c1;hp=11e7e18b85e4e006c090190b464094d408aba117;hpb=48f74f488893c3b7dbc5cd7c72ccf25947049ca5;p=gdcm.git diff --git a/vtk/CMakeLists.txt b/vtk/CMakeLists.txt index 11e7e18b..da5acb64 100644 --- a/vtk/CMakeLists.txt +++ b/vtk/CMakeLists.txt @@ -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