]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Build with both: OpenGL2 and OpenGL renreding backend.
authorrnv <rnv@opencascade.com>
Tue, 13 Jun 2017 09:59:01 +0000 (12:59 +0300)
committerrnv <rnv@opencascade.com>
Tue, 13 Jun 2017 09:59:01 +0000 (12:59 +0300)
src/Plugins/SimpleMode/IO/CMakeLists.txt

index a33d581150b99a74afd131ce81f7b1200823a9ab..f683609ee0e880b6675281a82e188314a836f0a4 100644 (file)
@@ -19,5 +19,9 @@
 # Author : Anthony Geay (EDF R&D)
 
 VTK_MODULE_LIBRARY(vtkSimpleMode vtkSimpleMode.cxx)
-TARGET_LINK_LIBRARIES(vtkSimpleMode vtkPVVTKExtensionsRendering vtkFiltersGeneral vtkFiltersCore vtkRenderingOpenGL ${PARAVIEW_LIBRARIES})
+IF(${SALOME_GUI_USE_OPENGL2})
+  TARGET_LINK_LIBRARIES(vtkSimpleMode vtkPVVTKExtensionsRendering vtkFiltersGeneral vtkFiltersCore vtkRenderingOpenGL2 ${PARAVIEW_LIBRARIES})
+ELSE()
+  TARGET_LINK_LIBRARIES(vtkSimpleMode vtkPVVTKExtensionsRendering vtkFiltersGeneral vtkFiltersCore vtkRenderingOpenGL ${PARAVIEW_LIBRARIES})
+ENDIF()
 INSTALL(TARGETS vtkSimpleMode RUNTIME DESTINATION lib/salome LIBRARY DESTINATION lib/salome ARCHIVE DESTINATION lib/salome)