X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vtk%2FCMakeLists.txt;h=3d21617b41e12733f19c8a053f0866d0985f58fd;hb=08d772680eb43d9529450522200fe3cbe2ac6c6b;hp=e5e30ff7890325b2b52fe6d53fd693341d6e72d2;hpb=7b90a94638699fec1143d1928f6a6b6f3c769d54;p=gdcm.git diff --git a/vtk/CMakeLists.txt b/vtk/CMakeLists.txt index e5e30ff7..3d21617b 100644 --- a/vtk/CMakeLists.txt +++ b/vtk/CMakeLists.txt @@ -1,13 +1,19 @@ -#VTK GDCM subdir +#----------------------------------------------------------------------------- +# 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 @@ -16,6 +22,8 @@ TARGET_LINK_LIBRARIES(vtkgdcm vtkFiltering ) +#----------------------------------------------------------------------------- +# See with frog why m4 didn't link to lib, and include cxx file instead ? SET(vtkgdcmdemo_SOURCES testvtkGdcmReader.cxx # vtkGdcmReader.cxx @@ -27,6 +35,8 @@ TARGET_LINK_LIBRARIES(vtkgdcmdemo vtkRendering ) +#----------------------------------------------------------------------------- +# See with frog why m4 didn't link to lib, and include cxx file instead ? SET(vtkgdcmViewer_SOURCES vtkgdcmViewer.cxx #vtkGdcmReader.cxx @@ -35,4 +45,9 @@ ADD_EXECUTABLE(vtkgdcmViewer ${vtkgdcmViewer_SOURCES}) TARGET_LINK_LIBRARIES(vtkgdcmViewer vtkgdcm vtkRendering -) \ No newline at end of file +) + +# Install vtk header +INSTALL_FILES(/include FILES vtkGdcmReader.h) + +INSTALL_TARGETS(/lib/ vtkgdcm)