mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 21:33:55 +00:00
Make the rendering part of the build optional.
Add the mesa libs to the link line.
This commit is contained in:
parent
719b715b59
commit
294b73e00e
@ -99,6 +99,7 @@ option(VTKm_ENABLE_BENCHMARKS "Enable VTKm Benchmarking" OFF)
|
|||||||
|
|
||||||
option(VTKm_BUILD_DOCUMENTATION "Build Doxygen documentation" OFF)
|
option(VTKm_BUILD_DOCUMENTATION "Build Doxygen documentation" OFF)
|
||||||
option(VTKm_BUILD_EXAMPLES "Build examples" OFF)
|
option(VTKm_BUILD_EXAMPLES "Build examples" OFF)
|
||||||
|
option(VTKm_BUILD_RENDERING "Build rendering" OFF)
|
||||||
|
|
||||||
option(VTKm_USE_DOUBLE_PRECISION
|
option(VTKm_USE_DOUBLE_PRECISION
|
||||||
"Use double precision for floating point calculations"
|
"Use double precision for floating point calculations"
|
||||||
|
@ -55,6 +55,12 @@ if(VTKm_ENABLE_OPENGL_INTEROP)
|
|||||||
add_subdirectory(opengl)
|
add_subdirectory(opengl)
|
||||||
endif(VTKm_ENABLE_OPENGL_INTEROP)
|
endif(VTKm_ENABLE_OPENGL_INTEROP)
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------------------
|
||||||
|
# Build rendering
|
||||||
|
if(VTKm_BUILD_RENDERING)
|
||||||
|
add_subdirectory(rendering)
|
||||||
|
endif(VTKm_BUILD_RENDERING)
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
#add the control and exec folders
|
#add the control and exec folders
|
||||||
add_subdirectory(cont)
|
add_subdirectory(cont)
|
||||||
@ -75,7 +81,3 @@ add_subdirectory(benchmarking)
|
|||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
#add the io folder
|
#add the io folder
|
||||||
add_subdirectory(io)
|
add_subdirectory(io)
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
|
||||||
#add the rendering folder
|
|
||||||
add_subdirectory(rendering)
|
|
||||||
|
@ -39,6 +39,5 @@ include_directories(${OSMESA_INCLUDE_DIR})
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
add_subdirectory(testing)
|
add_subdirectory(testing)
|
||||||
|
@ -22,6 +22,6 @@ set(unit_tests
|
|||||||
UnitTestSceneRendererOSMesa.cxx
|
UnitTestSceneRendererOSMesa.cxx
|
||||||
UnitTestSceneRendererVolume.cxx
|
UnitTestSceneRendererVolume.cxx
|
||||||
)
|
)
|
||||||
|
|
||||||
VTKM_unit_tests(SOURCES ${unit_tests})
|
|
||||||
|
|
||||||
|
VTKM_unit_tests(SOURCES ${unit_tests}
|
||||||
|
LIBRARIES ${OSMESA_LIBRARY})
|
||||||
|
Loading…
Reference in New Issue
Block a user