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)
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()
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
# 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")
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})
vtk_module(vtkMedReader
DEPENDS
${VTK_LIBS}
- TEST_DEPENDS
+ vtkRenderingFreeTypeOpenGL
+ vtkRenderingOpenGL
+ vtkRenderingFreeType
+ vtkRenderingCore
+ vtkInteractionStyle
+ TEST_DEPENDS
vtkRenderingCore
vtkTestingRendering
vtkInteractionStyle
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
ADD_LIBRARY(vtkTableTo3D ${TABLETO3D_SRCS})
-TARGET_LINK_LIBRARIES(vtkTableTo3D ${VTK_LIBS})
+TARGET_LINK_LIBRARIES(vtkTableTo3D ${VTK_LIBRARIES})
INSTALL(
TARGETS vtkTableTo3D