From: malaterre Date: Thu, 11 May 2006 15:29:56 +0000 (+0000) Subject: BUG: Wrong install path X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=81da5c31403d14098741d9e1bde3864e2c8cd863;p=gdcm.git BUG: Wrong install path --- diff --git a/vtk/CMakeLists.txt b/vtk/CMakeLists.txt index 72f1b0cd..e5ee62fa 100644 --- a/vtk/CMakeLists.txt +++ b/vtk/CMakeLists.txt @@ -101,10 +101,15 @@ TARGET_LINK_LIBRARIES(vtkWriteDicomExtended ) #----------------------------------------------------------------------------- # Install vtk header -INSTALL_FILES(/include/gdcm FILES vtkGdcmReader.h) -INSTALL_FILES(/include/gdcm FILES vtkGdcmWriter.h) +IF(NOT GDCM_INSTALL_NO_DEVELOPMENT) + INSTALL_FILES(${GDCM_INSTALL_INCLUDE_DIR} FILES vtkGdcmReader.h) + INSTALL_FILES(${GDCM_INSTALL_INCLUDE_DIR} FILES vtkGdcmWriter.h) +ENDIF(NOT GDCM_INSTALL_NO_DEVELOPMENT) + +IF(NOT GDCM_INSTALL_NO_LIBRARIES) + INSTALL_TARGETS(${GDCM_INSTALL_LIB_DIR} vtkgdcm) + INSTALL_TARGETS(${GDCM_INSTALL_BIN_DIR} vtkgdcmViewer) + INSTALL_TARGETS(${GDCM_INSTALL_BIN_DIR} vtkgdcmViewer2) + INSTALL_TARGETS(${GDCM_INSTALL_BIN_DIR} vtkgdcmSerieViewer) +ENDIF(NOT GDCM_INSTALL_NO_LIBRARIES) -INSTALL_TARGETS(/lib/gdcm/ vtkgdcm) -INSTALL_TARGETS(/bin/ vtkgdcmViewer) -INSTALL_TARGETS(/bin/ vtkgdcmViewer2) -INSTALL_TARGETS(/bin/ vtkgdcmSerieViewer)