[vtkusers] Patch - Examples

Martins D Innus minnus at eng.buffalo.edu
Wed Jul 3 11:46:38 EDT 2002


Hi,
	Without the attached patch I couldn't get the examples to compile.
Nightly snapshot downloaded yesterday.

Martins
-------------- next part --------------
diff -uNr VTK/Examples/CMakeLists.txt vtk4_7-02-02/Examples/CMakeLists.txt
--- VTK/Examples/CMakeLists.txt	Fri Jul 13 13:01:37 2001
+++ vtk4_7-02-02/Examples/CMakeLists.txt	Tue Jul  2 15:17:23 2002
@@ -1,3 +1,11 @@
 IF (VTK_USE_PARALLEL)
    SUBDIRS(ParallelProcessing)
 ENDIF (VTK_USE_PARALLEL)
+
+IF (VTK_USE_RENDERING)
+   SUBDIRS(Rendering)
+   SUBDIRS(DataManipulation)
+   SUBDIRS(GUI)
+   SUBDIRS(Modelling)
+   SUBDIRS(Tutorial)
+ENDIF (VTK_USE_RENDERING)
diff -uNr VTK/Examples/DataManipulation/CMakeLists.txt vtk4_7-02-02/Examples/DataManipulation/CMakeLists.txt
--- VTK/Examples/DataManipulation/CMakeLists.txt	Wed Dec 31 19:00:00 1969
+++ vtk4_7-02-02/Examples/DataManipulation/CMakeLists.txt	Tue Jul  2 14:26:48 2002
@@ -0,0 +1 @@
+SUBDIRS(Cxx)
diff -uNr VTK/Examples/GUI/CMakeLists.txt vtk4_7-02-02/Examples/GUI/CMakeLists.txt
--- VTK/Examples/GUI/CMakeLists.txt	Wed Dec 31 19:00:00 1969
+++ vtk4_7-02-02/Examples/GUI/CMakeLists.txt	Tue Jul  2 14:29:53 2002
@@ -0,0 +1 @@
+SUBDIRS(Motif)
diff -uNr VTK/Examples/GUI/Motif/CMakeLists.txt vtk4_7-02-02/Examples/GUI/Motif/CMakeLists.txt
--- VTK/Examples/GUI/Motif/CMakeLists.txt	Fri Sep 28 10:01:33 2001
+++ vtk4_7-02-02/Examples/GUI/Motif/CMakeLists.txt	Tue Jul  2 14:46:27 2002
@@ -5,7 +5,7 @@
 # WARNING: The Motif library HAS to be placed BEFORE the Xt library brought in
 # by VTK (see Motif FAQ item 335)
 
-LINK_LIBRARIES(-lXm)
+LINK_LIBRARIES(/usr/X11R6/lib -lXm)
 
 INCLUDE (${CMAKE_ROOT}/Modules/FindVTK.cmake)
 IF (USE_VTK_FILE)
diff -uNr VTK/Examples/Modelling/CMakeLists.txt vtk4_7-02-02/Examples/Modelling/CMakeLists.txt
--- VTK/Examples/Modelling/CMakeLists.txt	Wed Dec 31 19:00:00 1969
+++ vtk4_7-02-02/Examples/Modelling/CMakeLists.txt	Tue Jul  2 14:30:30 2002
@@ -0,0 +1 @@
+SUBDIRS(Cxx)
diff -uNr VTK/Examples/Rendering/CMakeLists.txt vtk4_7-02-02/Examples/Rendering/CMakeLists.txt
--- VTK/Examples/Rendering/CMakeLists.txt	Wed Dec 31 19:00:00 1969
+++ vtk4_7-02-02/Examples/Rendering/CMakeLists.txt	Tue Jul  2 14:24:34 2002
@@ -0,0 +1 @@
+SUBDIRS(Cxx)
diff -uNr VTK/Examples/Tutorial/CMakeLists.txt vtk4_7-02-02/Examples/Tutorial/CMakeLists.txt
--- VTK/Examples/Tutorial/CMakeLists.txt	Wed Dec 31 19:00:00 1969
+++ vtk4_7-02-02/Examples/Tutorial/CMakeLists.txt	Tue Jul  2 14:39:37 2002
@@ -0,0 +1,2 @@
+SUBDIRS(Step1)
+SUBDIRS(Step2)
diff -uNr VTK/Examples/Tutorial/Step1/CMakeLists.txt vtk4_7-02-02/Examples/Tutorial/Step1/CMakeLists.txt
--- VTK/Examples/Tutorial/Step1/CMakeLists.txt	Wed Dec 31 19:00:00 1969
+++ vtk4_7-02-02/Examples/Tutorial/Step1/CMakeLists.txt	Tue Jul  2 14:39:09 2002
@@ -0,0 +1 @@
+SUBDIRS(Cxx)
diff -uNr VTK/Examples/Tutorial/Step1/Cxx/Cone.cxx vtk4_7-02-02/Examples/Tutorial/Step1/Cxx/Cone.cxx
--- VTK/Examples/Tutorial/Step1/Cxx/Cone.cxx	Tue Jan 22 10:27:37 2002
+++ vtk4_7-02-02/Examples/Tutorial/Step1/Cxx/Cone.cxx	Tue Jul  2 15:07:04 2002
@@ -26,6 +26,7 @@
 #include "vtkConeSource.h"
 #include "vtkPolyDataMapper.h"
 #include "vtkRenderWindow.h"
+#include "vtkCamera.h"
 
 int main( int argc, char *argv[] )
 {
diff -uNr VTK/Examples/Tutorial/Step2/CMakeLists.txt vtk4_7-02-02/Examples/Tutorial/Step2/CMakeLists.txt
--- VTK/Examples/Tutorial/Step2/CMakeLists.txt	Wed Dec 31 19:00:00 1969
+++ vtk4_7-02-02/Examples/Tutorial/Step2/CMakeLists.txt	Tue Jul  2 14:39:00 2002
@@ -0,0 +1 @@
+SUBDIRS(Cxx)
diff -uNr VTK/Examples/Tutorial/Step2/Cxx/Cone2.cxx vtk4_7-02-02/Examples/Tutorial/Step2/Cxx/Cone2.cxx
--- VTK/Examples/Tutorial/Step2/Cxx/Cone2.cxx	Tue Jan 22 10:27:37 2002
+++ vtk4_7-02-02/Examples/Tutorial/Step2/Cxx/Cone2.cxx	Tue Jul  2 15:08:03 2002
@@ -24,6 +24,7 @@
 #include "vtkPolyDataMapper.h"
 #include "vtkRenderWindow.h"
 #include "vtkCommand.h"
+#include "vtkCamera.h"
 
 class myCallback : public vtkCommand
 {


More information about the vtkusers mailing list