]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Merge from V7_2_BR 09/08/2013
authorvsr <vsr@opencascade.com>
Mon, 12 Aug 2013 13:02:13 +0000 (13:02 +0000)
committervsr <vsr@opencascade.com>
Mon, 12 Aug 2013 13:02:13 +0000 (13:02 +0000)
idl/vtkWrapIDL.c
src/PVGUI/create_class.py
src/Plugins/MedReader/CMakeLists.txt
src/Plugins/MedReader/IO/CMakeLists.txt
src/Plugins/MedReader/IO/Testing/Cxx/CMakeLists.txt
src/Plugins/MedReader/IO/module.cmake
src/Plugins/TableReader/Reader/CMakeLists.txt
src/Plugins/TableReader/TableTo3DFilter/CMakeLists.txt

index 5960c23643d0a83cb687176eed574ae8cd06d700..60385a428c11e5f6dfe518ac80b8bcb0e9d7dbab 100644 (file)
@@ -1370,6 +1370,16 @@ void outputFunction2(FILE *fp, ClassInfo *data)
     fprintf(fp,"#include \"PARAVIS_Gen_%s_i.hh\"\n",data->SuperClasses[i]);
   }
 
+  //RNV: to avoid link error on windows via Visual Studio
+  //undef GetObject macro.
+  if( strcmp(data->Name, "vtkWebGLExporter") == 0 ) {
+    fprintf(fp,"#ifdef WIN32\n");
+    fprintf(fp,"  #ifdef GetObject\n");
+    fprintf(fp,"    #undef GetObject\n");
+    fprintf(fp,"  #endif\n");
+    fprintf(fp,"#endif\n");
+  }
+
   fprintf(fp,"\nclass %s;\n",data->Name);
   fprintf(fp,"\nnamespace PARAVIS\n{\n\n");
 #elif defined(IDL_I_CC)
index 212a3e64a0ed75ac8d42db57b2c271f9de2a74c5..4532eda045447b24c644028012edef7bf5a335e0 100755 (executable)
@@ -31,6 +31,13 @@ ffile_stream.write('#include <QString>' + '\n')
 ffile_stream.write('#include "PARAVIS_Gen_i.hh"' + '\n')
 wfile_stream = open(wfile)
 for line in wfile_stream:
+    if line.split()[0] == "vtkWebGLExporter" :
+       ffile_stream.write('#ifdef WIN32\n')
+       ffile_stream.write('  #ifdef GetObject\n')
+       ffile_stream.write('    #undef GetObject\n')
+       ffile_stream.write('  #endif\n')
+       ffile_stream.write('#endif\n')
+       pass
     ffile_stream.write('#include "PARAVIS_Gen_%s_i.hh"'%(line.split()[0]) + '\n')
     pass
 wfile_stream.close()
index da5fea0662661a4921ad8ead9a9587d414196652..8d71a8fd9dfe0ecfab5025967cf279d076513439 100644 (file)
@@ -63,6 +63,7 @@ OPTION(BUILD_SHARED_LIBS
 SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake ${CMAKE_MODULE_PATH} )
 FIND_PACKAGE(MED REQUIRED)
 include_directories(${MED_INCLUDE_DIRS})
+include_directories(${MEDFILE_INCLUDE_DIRS})
 
 #
 # process all vtk-modules defined in this plugin. This generates the necessary
index 75c315301c5d8502aa05b64a60ce0c97cafaa975..d42e72a7b6bd9d1108d8b9fa09bb1839ad84a3d2 100644 (file)
@@ -86,7 +86,7 @@ vtk_module_library(vtkMedReader ${MedReader_SRCS})
 # CONFIGURE_FILE( ${PROJECT_SOURCE_DIR}/IO/config.h.cmake ${PROJECT_SOURCE_DIR}/IO/config.h )
 CONFIGURE_FILE( ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h )
 
-target_link_libraries(vtkMedReader ${MED_LIBRARIES})
+target_link_libraries(vtkMedReader ${MEDFILE_LIBRARIES})
 
 #set(MedReader_BUILD_Testing ${VTK_BUILD_TESTING} CACHE BOOL "Build tests for the MedReader filter")
 
index 99efa27b96817c2ff0a6e5d79068724b118cdd7e..3240b82213166c320f9a2d537124975bde646538 100644 (file)
@@ -62,16 +62,16 @@ add_executable(TestMedWriteOcta12 ${TestMedWriteOcta12_SRCS})
 if(${HDF5_IS_PARALLEL})
   add_executable(TestMedParallelRead ${TestMedParallelRead_SRCS})
   add_executable(TestMedParallelWrite ${TestMedParallelWrite_SRCS})
-  target_link_libraries(TestMedParallelRead vtkParallelCore ${MED_LIBRARIES})
-  target_link_libraries(TestMedParallelWrite vtkParallelCore ${MED_LIBRARIES})
+  target_link_libraries(TestMedParallelRead vtkParallelCore ${MEDFILE_LIBRARIES})
+  target_link_libraries(TestMedParallelWrite vtkParallelCore ${MEDFILE_LIBRARIES})
 endif(${HDF5_IS_PARALLEL})
 
 INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/../../module.cmake)
 
-target_link_libraries(TestMedReader ${${vtk-module-test}_DEPENDS} ${MED_LIBRARIES})
-target_link_libraries(TestMedPolyhedron ${MED_LIBRARIES})
-target_link_libraries(TestMedReadPolyhedron ${MED_LIBRARIES})
-target_link_libraries(TestMedDescendingPolyhedron ${MED_LIBRARIES})
-target_link_libraries(TestMedReadDescendingPolyhedron ${MED_LIBRARIES})
-target_link_libraries(TestMedWriteOcta12 ${MED_LIBRARIES})
+target_link_libraries(TestMedReader ${${vtk-module-test}_DEPENDS} ${MEDFILE_LIBRARIES})
+target_link_libraries(TestMedPolyhedron ${MEDFILE_LIBRARIES})
+target_link_libraries(TestMedReadPolyhedron ${MEDFILE_LIBRARIES})
+target_link_libraries(TestMedDescendingPolyhedron ${MEDFILE_LIBRARIES})
+target_link_libraries(TestMedReadDescendingPolyhedron ${MEDFILE_LIBRARIES})
+target_link_libraries(TestMedWriteOcta12 ${MEDFILE_LIBRARIES})
 
index 5a1f56bc38802f953ae2bf07655c6733d03b6478..80282b0aa3e5ea003af1f6e7fed726d2821fd0b6 100644 (file)
@@ -3,7 +3,12 @@ SET(VTK_LIBS vtkCommonExecutionModel vtkParallelCore)
 vtk_module(vtkMedReader
   DEPENDS
     ${VTK_LIBS}
-  TEST_DEPENDS
+    vtkRenderingFreeTypeOpenGL
+    vtkRenderingOpenGL
+    vtkRenderingFreeType
+    vtkRenderingCore
+    vtkInteractionStyle
+    TEST_DEPENDS
     vtkRenderingCore
     vtkTestingRendering
     vtkInteractionStyle
index 9de037d5d3de9ec4d4385912809ef91a22544b6c..b03e0a66c446ab2d270fe345cacb7e29cd032be1 100644 (file)
@@ -24,7 +24,7 @@ SET(READER_SRCS
 
 ADD_LIBRARY(vtkVisuTableReader ${READER_SRCS})
 
-TARGET_LINK_LIBRARIES(vtkVisuTableReader ${VTK_LIBS} ${vtkInfovis} ${QT_LIBS})
+TARGET_LINK_LIBRARIES(vtkVisuTableReader ${VTK_LIBRARIES} ${vtkInfovis} ${QT_LIBS})
 
 INSTALL(
     TARGETS vtkVisuTableReader
index c5fd1db34389b884c18f623f69051d57f6863c31..0631691831f53b3714ca0ff1f0edfe02976c2a63 100644 (file)
@@ -23,7 +23,7 @@ SET(TABLETO3D_SRCS
 
 ADD_LIBRARY(vtkTableTo3D ${TABLETO3D_SRCS})
 
-TARGET_LINK_LIBRARIES(vtkTableTo3D ${VTK_LIBS})
+TARGET_LINK_LIBRARIES(vtkTableTo3D ${VTK_LIBRARIES})
 
 INSTALL(
     TARGETS vtkTableTo3D