From: barate Date: Tue, 26 Mar 2013 09:30:13 +0000 (+0000) Subject: Fix VTKViewer when compiled with CMake (add missing VTK component) X-Git-Tag: V7_2_0b1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=42638400a204eb0d13ba0dfca5d994f03c337cb5;p=modules%2Fgui.git Fix VTKViewer when compiled with CMake (add missing VTK component) --- diff --git a/adm_local/cmake_files/FindSalomeVTK.cmake b/adm_local/cmake_files/FindSalomeVTK.cmake index 0af466192..0f4e3184f 100644 --- a/adm_local/cmake_files/FindSalomeVTK.cmake +++ b/adm_local/cmake_files/FindSalomeVTK.cmake @@ -6,7 +6,7 @@ set(PARAVIEW_VERSION $ENV{PARAVIEW_VERSION} CACHE STRING "Version of Paraview") if(EXISTS ${PARAVIEW_ROOT_DIR}) set(VTK_DIR ${PARAVIEW_ROOT_DIR}/lib/cmake/paraview-${PARAVIEW_VERSION} CACHE PATH "Path to directory including VTKConfig.cmake") endif(EXISTS ${PARAVIEW_ROOT_DIR}) -set(VTK_COMPONENTS vtkRenderingOpenGL vtkRenderingLOD vtkRenderingAnnotation vtkFiltersParallel vtkIOExport) +set(VTK_COMPONENTS vtkRenderingFreeTypeOpenGL vtkRenderingLOD vtkRenderingAnnotation vtkFiltersParallel vtkIOExport) find_package(VTK 6.0 REQUIRED COMPONENTS ${VTK_COMPONENTS} NO_MODULE) if (VTK_FOUND) message(STATUS "VTK version is ${VTK_MAJOR_VERSION}.${VTK_MINOR_VERSION}")