X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vtk%2FCMakeLists.txt;h=69028cc66a7f569b902b7117c9dd90c2df00c113;hb=8670efa6c3fc51c51fe71c2f62af2297a19b07e2;hp=3d21617b41e12733f19c8a053f0866d0985f58fd;hpb=b7518dc8f2304a666cafac4b1b18ac7d81983555;p=gdcm.git diff --git a/vtk/CMakeLists.txt b/vtk/CMakeLists.txt index 3d21617b..69028cc6 100644 --- a/vtk/CMakeLists.txt +++ b/vtk/CMakeLists.txt @@ -1,53 +1,78 @@ -#----------------------------------------------------------------------------- -# VTK GDCM Reader subdir - -#----------------------------------------------------------------------------- -# Need gdcm header files -INCLUDE_DIRECTORIES( - ${GDCM_SOURCE_DIR}/src/ - ${GDCM_BINARY_DIR}/ -) - -SET(VTKGDCM_LIB_SRCS - vtkGdcmReader.cxx -) - -#----------------------------------------------------------------------------- -# Create vtkgdcm library -ADD_LIBRARY(vtkgdcm ${VTKGDCM_LIB_SRCS}) -TARGET_LINK_LIBRARIES(vtkgdcm - gdcm - vtkCommon - vtkIO - vtkFiltering -) - -#----------------------------------------------------------------------------- -# See with frog why m4 didn't link to lib, and include cxx file instead ? -SET(vtkgdcmdemo_SOURCES - testvtkGdcmReader.cxx -# vtkGdcmReader.cxx -) -ADD_EXECUTABLE(vtkgdcmdemo ${vtkgdcmdemo_SOURCES}) -TARGET_LINK_LIBRARIES(vtkgdcmdemo - vtkgdcm - vtkGraphics - vtkRendering -) - -#----------------------------------------------------------------------------- -# See with frog why m4 didn't link to lib, and include cxx file instead ? -SET(vtkgdcmViewer_SOURCES - vtkgdcmViewer.cxx - #vtkGdcmReader.cxx -) -ADD_EXECUTABLE(vtkgdcmViewer ${vtkgdcmViewer_SOURCES}) -TARGET_LINK_LIBRARIES(vtkgdcmViewer - vtkgdcm - vtkRendering -) - -# Install vtk header -INSTALL_FILES(/include FILES vtkGdcmReader.h) - -INSTALL_TARGETS(/lib/ vtkgdcm) +#----------------------------------------------------------------------------- +# VTK GDCM Reader subdir + +#----------------------------------------------------------------------------- +# Include the VTK library +INCLUDE(${VTK_USE_FILE}) + +# Need gdcm header files +INCLUDE_DIRECTORIES( + ${GDCM_SOURCE_DIR}/src/ + ${GDCM_BINARY_DIR}/ +) + +SET(VTKGDCM_LIB_SRCS + vtkGdcmReader.cxx + vtkGdcmWriter.cxx +) + +#----------------------------------------------------------------------------- +# Create vtkgdcm library +ADD_LIBRARY(vtkgdcm ${VTKGDCM_LIB_SRCS}) +TARGET_LINK_LIBRARIES(vtkgdcm + gdcm + vtkCommon + vtkIO + vtkFiltering +) + +#----------------------------------------------------------------------------- +SET(vtkgdcmdemo_SOURCES + vtkGdcmDemo.cxx +) +ADD_EXECUTABLE(vtkgdcmdemo ${vtkgdcmdemo_SOURCES}) +TARGET_LINK_LIBRARIES(vtkgdcmdemo + vtkgdcm + vtkGraphics + vtkRendering +) + +#----------------------------------------------------------------------------- +SET(vtkgdcmViewer_SOURCES + vtkgdcmViewer.cxx +) +ADD_EXECUTABLE(vtkgdcmViewer ${vtkgdcmViewer_SOURCES}) +TARGET_LINK_LIBRARIES(vtkgdcmViewer + vtkgdcm + vtkRendering +) + +#----------------------------------------------------------------------------- +SET(vtkWriteDicom_SOURCES + vtkWriteDicom.cxx +) +ADD_EXECUTABLE(vtkWriteDicom ${vtkWriteDicom_SOURCES}) +TARGET_LINK_LIBRARIES(vtkWriteDicom + vtkgdcm + vtkIO + 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) + +INSTALL_TARGETS(/lib/ vtkgdcm) +