X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vtk%2FCMakeLists.txt;h=da5acb647a8bb76c5bc2f92f74d21c5057e5dd9d;hb=8921c6cc0f150378063fb0a2083f30c156b32dec;hp=a7f2b73dd17fd9bd025f89d1c08ee7548b179697;hpb=45490622810d0706cb4ec538634c4a886f39737b;p=gdcm.git diff --git a/vtk/CMakeLists.txt b/vtk/CMakeLists.txt index a7f2b73d..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 @@ -13,6 +15,7 @@ INCLUDE_DIRECTORIES( SET(VTKGDCM_LIB_SRCS vtkGdcmReader.cxx + vtkGdcmWriter.cxx ) #----------------------------------------------------------------------------- @@ -45,9 +48,27 @@ TARGET_LINK_LIBRARIES(vtkgdcmViewer vtkgdcm vtkRendering ) +ADD_EXECUTABLE(vtkgdcmViewer2 vtkgdcmViewer2.cxx) +TARGET_LINK_LIBRARIES(vtkgdcmViewer2 + vtkgdcm + vtkRendering +) +#----------------------------------------------------------------------------- +SET(vtkWriteDicom_SOURCES + vtkWriteDicom.cxx +) +ADD_EXECUTABLE(vtkWriteDicom ${vtkWriteDicom_SOURCES}) +TARGET_LINK_LIBRARIES(vtkWriteDicom + vtkgdcm + vtkIO + vtkRendering +) + +#----------------------------------------------------------------------------- # Install vtk header INSTALL_FILES(/include FILES vtkGdcmReader.h) +INSTALL_FILES(/include FILES vtkGdcmWriter.h) INSTALL_TARGETS(/lib/ vtkgdcm)