Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.75 KB | None | 0 0
  1. cmake_minimum_required(VERSION 2.8.10)
  2. project(vtkOpenVRHelloWorld)
  3.  
  4. find_package(VTK REQUIRED)
  5. vtk_module_config(VTK
  6. vtkRenderingVolume
  7. vtkRenderingVolumeOpenGL2
  8. vtkCommonCore
  9. vtkCommonDataModel
  10. vtkFiltersGeneral
  11. vtkIOImage
  12. vtkIOXML
  13. vtkInteractionStyle
  14. vtkRenderingOpenGL2
  15. vtkRenderingOpenVR
  16. )
  17. include(${VTK_USE_FILE})
  18.  
  19. message( STATUS "VTK_USE_FILE = ${VTK_USE_FILE}" )
  20. include(${VTK_USE_FILE})
  21. list(APPEND PROJECT_LIBRARIES ${VTK_LIBRARIES})
  22. include_directories( ${VTK_INCLUDE_DIR} )
  23. include_directories( ${CMAKE_SOURCE_DIR} )
  24.  
  25. set( SRC_LIST CylinderRenderingProperties.cxx )
  26. set( HDR_LIST )
  27.  
  28. # create the executable
  29. add_executable(${PROJECT_NAME} ${SRC_LIST} ${HDR_LIST} )
  30. target_link_libraries(${PROJECT_NAME} ${PROJECT_LIBRARIES})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement