Commit 35a3e376 authored by David E. DeMarle's avatar David E. DeMarle

Give OpenGL include directory to everything that needs it.

For example vtkGL2PSExporter.cxx includes vtkOpenGLRenderWindow.h,
which includes vtkOpenGL.h which includes GL/gl.h.
When that isn't on the system include path, as in cross compilation for
a supercomputer an using pure OSmesa compilation will fail.

Change-Id: Ic0fa1870009c6013ad30dbb938707ba4735f1ed3
parent f076c3b0
......@@ -30,4 +30,6 @@ set_source_files_properties(
ABSTRACT
)
include_directories(${OPENGL_INCLUDE_DIR})
vtk_module_library(vtkIOExport ${Module_SRCS})
......@@ -49,4 +49,7 @@ set_source_files_properties(
WRAP_EXCLUDE
)
include_directories(${OPENGL_INCLUDE_DIR})
vtk_module_library(vtkRenderingContext2D ${module_SRCS})
......@@ -32,4 +32,7 @@ set_source_files_properties(
WRAP_EXCLUDE
)
include_directories(${OPENGL_INCLUDE_DIR})
vtk_module_library(${vtk-module} ${Module_SRCS})
......@@ -5,4 +5,8 @@ set(Module_SRCS
set_source_files_properties(
vtkGL2PSContextDevice2D
WRAP_EXCLUDE)
include_directories(${OPENGL_INCLUDE_DIR})
vtk_module_library(${vtk-module} ${Module_SRCS})
......@@ -31,4 +31,7 @@ foreach(file ${shader_files})
set_source_files_properties(${file_we} WRAP_EXCLUDE)
endforeach()
include_directories(${OPENGL_INCLUDE_DIR})
vtk_module_library(${vtk-module} ${Module_SRCS})
......@@ -20,5 +20,7 @@ set_source_files_properties(
ABSTRACT
)
include_directories(${OPENGL_INCLUDE_DIR})
include_directories(${VTK_SOURCE_DIR}/Utilities) # octree
vtk_module_library(vtkRenderingLabel ${Module_SRCS})
......@@ -46,4 +46,6 @@ set_source_files_properties(
WRAP_EXCLUDE
)
include_directories(${OPENGL_INCLUDE_DIR})
vtk_module_library(vtkRenderingParallel ${Module_SRCS})
......@@ -117,4 +117,7 @@ set_source_files_properties(
WRAP_EXCLUDE
)
include_directories(${OPENGL_INCLUDE_DIR})
vtk_module_library(vtkRenderingVolumeOpenGL ${Module_SRCS})
......@@ -27,6 +27,9 @@ include_directories(
${GL2PS_GL_INCLUDE_DIR}
)
include_directories(${OPENGL_INCLUDE_DIR})
# Source files
set(GL2PS_srcs
gl2ps.c
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment