Examples that use Rendering now need to configure Rendering

This commit is contained in:
Kenneth Moreland 2016-08-26 08:55:46 -06:00
parent ea8602d882
commit 2ea00d28f0
2 changed files with 4 additions and 4 deletions

@ -23,10 +23,10 @@
#Find the VTK-m package
find_package(VTKm QUIET REQUIRED
COMPONENTS Base
OPTIONAL_COMPONENTS Serial Cuda TBB OSMesa
OPTIONAL_COMPONENTS Serial Cuda TBB OSMesa Rendering
)
if(VTKm_OSMesa_FOUND)
if(VTKm_OSMesa_FOUND AND VTKm_Rendering_FOUND)
if(VTKm_CUDA_FOUND)
# Cuda compiles do not respect target_include_directories

@ -23,12 +23,12 @@
#Find the VTK-m package
find_package(VTKm REQUIRED QUIET
COMPONENTS Base
OPTIONAL_COMPONENTS Serial OpenGL
OPTIONAL_COMPONENTS Serial OpenGL Rendering
)
find_package(GLUT)
if(VTKm_OpenGL_FOUND AND GLUT_FOUND)
if(VTKm_OpenGL_FOUND AND VTKm_Rendering_FOUND AND GLUT_FOUND)
add_executable(Rendering_SERIAL Rendering.cxx)
target_include_directories(Rendering_SERIAL PRIVATE ${GLUT_INCLUDE_DIR} ${VTKm_INCLUDE_DIRS})
target_link_libraries(Rendering_SERIAL ${GLUT_LIBRARIES} ${VTKm_LIBRARIES})