]> Creatis software - gdcm.git/blobdiff - vtk/CMakeLists.txt
using EXPORT should help...
[gdcm.git] / vtk / CMakeLists.txt
index 9d6b47323bf0f09ccaceeae7dd28bc1a42f80e57..c14c477a825485a2cd5a6ecfb95c218fa301745f 100644 (file)
@@ -3,7 +3,6 @@
 # Rebuild gdcm whenever a file starting with vtk* is modified
 INCLUDE_REGULAR_EXPRESSION("^vtk.*$")
 
-
      if(COMMAND cmake_policy)
        cmake_policy(SET CMP0003 NEW)
      endif(COMMAND cmake_policy)
@@ -29,7 +28,7 @@ IF("${VTK_MAJOR_VERSION}" GREATER 4)
     vtkGdcmWriter.cxx
     vtkImageColorViewer.cxx
     vtkImageMapToWindowLevelColors2.cxx
-    vtkGdcm4DSplitter.cxx
+    vtkGdcm4DSplitter.cxx
   )
 ELSE("${VTK_MAJOR_VERSION}" GREATER 4)
   SET(VTKGDCM_LIB_SRCS
@@ -76,17 +75,31 @@ TARGET_LINK_LIBRARIES(Bmp2Dcm
 )
 
 #-----------------------------------------------------------------------------
-SET(vtkgdcmViewer_SOURCES
-  vtkgdcmViewer.cxx
-)
+#ADD_EXECUTABLE(exUnMosaic2 exUnMosaic2.cxx)
+#TARGET_LINK_LIBRARIES(exUnMosaic2
+#  vtkgdcm
+  ##vtkRendering
+#)
 
-#SET(vtkJPEGViewer_SOURCES
-#  vtkJPEGViewer.cxx
+#ADD_EXECUTABLE(exUnMosaic3 exUnMosaic3.cxx)
+#TARGET_LINK_LIBRARIES(exUnMosaic3
+#  vtkgdcm
+#  #vtkRendering
 #)
 
-#SET(vtkJPEGViewer2_SOURCES
-#  vtkJPEGViewer2.cxx
+#ADD_EXECUTABLE(exUnMosaic4 exUnMosaic4.cxx)
+#TARGET_LINK_LIBRARIES(exUnMosaic4
+#  vtkgdcm
+#  #vtkRendering
 #)
+#-----------------------------------------------------------------------------
+SET(vtkgdcmViewer_SOURCES
+  vtkgdcmViewer.cxx
+)
+
+SET(vtkgdcmViewer2_SOURCES
+  vtkgdcmViewer2.cxx
+)
 
 # let's do some APPLE/WIN32 magic here
 #IF(WIN32)
@@ -119,6 +132,27 @@ TARGET_LINK_LIBRARIES(vtkgdcmViewer
 #  vtkRendering
 #)
 
+#-----------------------------------------------------------------------------
+SET(test4DSplitter_SOURCES
+  test4DSplitter.cxx
+)
+
+ADD_EXECUTABLE(test4DSplitter ${GUI_EXECUTABLE} ${test4DSplitter_SOURCES})
+TARGET_LINK_LIBRARIES( test4DSplitter
+  ${test4DSplitter_LINK_LIBRARIES} 
+)
+
+#-----------------------------------------------------------------------------
+#SET(testEmilie1_SOURCES
+#  testEmilie1.cxx
+#)
+#
+#ADD_EXECUTABLE(testEmilie1 ${GUI_EXECUTABLE} ${testEmilie1_SOURCES})
+#TARGET_LINK_LIBRARIES( testEmilie1
+#  vtkgdcm 
+#)
+#-----------------------------------------------------------------------------
+
 ADD_EXECUTABLE(vtkgdcmViewer2 ${GUI_EXECUTABLE} vtkgdcmViewer2.cxx)
 TARGET_LINK_LIBRARIES(vtkgdcmViewer2
   vtkgdcm
@@ -164,6 +198,7 @@ TARGET_LINK_LIBRARIES(vtkWriteDicomExtended
 IF(NOT GDCM_INSTALL_NO_DEVELOPMENT)
   INSTALL_FILES(${GDCM_INSTALL_INCLUDE_DIR} FILES vtkGdcmReader.h)
   INSTALL_FILES(${GDCM_INSTALL_INCLUDE_DIR} FILES vtkGdcmWriter.h)
+  INSTALL_FILES(${GDCM_INSTALL_INCLUDE_DIR} FILES vtkGdcm4DSplitter.h)
 ENDIF(NOT GDCM_INSTALL_NO_DEVELOPMENT)
 
 IF(NOT GDCM_INSTALL_NO_LIBRARIES)