Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake_minimum_required(VERSION 2.8.10)
- project(Vive-Segmentation-Main)
- find_package(VTK REQUIRED)
- vtk_module_config(VTK
- vtkRenderingVolume
- vtkRenderingVolumeOpenGL2
- vtkCommonCore
- vtkCommonDataModel
- vtkFiltersGeneral
- vtkIOImage
- vtkIOXML
- vtkInteractionStyle
- vtkRenderingOpenGL2
- vtkRenderingOpenVR
- )
- include(${VTK_USE_FILE})
- message( STATUS "VTK_USE_FILE = ${VTK_USE_FILE}" )
- include(${VTK_USE_FILE})
- list(APPEND PROJECT_LIBRARIES ${VTK_LIBRARIES})
- include_directories( ${VTK_INCLUDE_DIR} )
- include_directories( ${CMAKE_SOURCE_DIR} )
- # shared sources and headers (not containing the main function)
- set( SRC_LIST src/VR_TestInteractorStyle.cpp)
- set( HDR_LIST hdr/VR_TestInteractorStyle.hpp)
- # create the executable
- add_executable(VR_HelloWorld ${SRC_LIST} ${HDR_LIST} src/VR_HelloWorld.cpp)
- target_link_libraries(VR_HelloWorld ${PROJECT_LIBRARIES})
- add_executable(VR_VolumeRenderExample ${SRC_LIST} ${HDR_LIST} src/VR_VolumeRenderExample.cpp)
- target_link_libraries(VR_VolumeRenderExample ${PROJECT_LIBRARIES})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement