X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vtk%2FCMakeLists.txt;h=6b2fa6b57ac78452de006db2d321a1f07a1f9a91;hb=797e905addc2b56fc1c463ee0156b5e5ad58e6e3;hp=a9a19244dae2d22893f1ff9beed786170761cee4;hpb=63f579ada04b47069e977c900e89b433e1aae95b;p=gdcm.git diff --git a/vtk/CMakeLists.txt b/vtk/CMakeLists.txt index a9a19244..6b2fa6b5 100644 --- a/vtk/CMakeLists.txt +++ b/vtk/CMakeLists.txt @@ -5,6 +5,7 @@ # Need gdcm header files INCLUDE_DIRECTORIES( ${GDCM_SOURCE_DIR}/src/ + ${GDCM_BINARY_DIR}/ ) SET(VTKGDCM_LIB_SRCS @@ -22,10 +23,8 @@ TARGET_LINK_LIBRARIES(vtkgdcm ) #----------------------------------------------------------------------------- -# See with frog why m4 didn't link to lib, and include cxx file instead ? SET(vtkgdcmdemo_SOURCES - testvtkGdcmReader.cxx -# vtkGdcmReader.cxx + vtkGdcmDemo.cxx ) ADD_EXECUTABLE(vtkgdcmdemo ${vtkgdcmdemo_SOURCES}) TARGET_LINK_LIBRARIES(vtkgdcmdemo @@ -35,10 +34,8 @@ TARGET_LINK_LIBRARIES(vtkgdcmdemo ) #----------------------------------------------------------------------------- -# 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 @@ -47,4 +44,6 @@ TARGET_LINK_LIBRARIES(vtkgdcmViewer ) # Install vtk header -INSTALL_FILES(/include FILES vtkGdcmReader.h) \ No newline at end of file +INSTALL_FILES(/include FILES vtkGdcmReader.h) + +INSTALL_TARGETS(/lib/ vtkgdcm)