Skip to content
Snippets Groups Projects
Commit e33b90d0 authored by Jean-Christophe Fillion-Robin's avatar Jean-Christophe Fillion-Robin
Browse files

vtkRenderingOpenVR: Support building the module externally

This enables building the module against an existing VTK build tree so that
it can be packaged and distributed independently (e.g Slicer extension)
parent 20629593
No related tags found
No related merge requests found
Pipeline #
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}")
if(NOT VTK_SOURCE_DIR)
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
project(vtkRenderingOpenVR)
find_package(VTK REQUIRED)
endif()
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${VTK_CMAKE_DIR}")
if(NOT VTK_SOURCE_DIR)
include(vtkExternalModuleMacros)
endif()
find_package(OpenVR REQUIRED)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment