Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 1.02 KB | None | 0 0
  1. cmake_minimum_required(VERSION 2.8.10)
  2. project(Vive-Segmentation-Main)
  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. # shared sources and headers (not containing the main function)
  26. set( SRC_LIST src/VR_TestInteractorStyle.cpp)
  27. set( HDR_LIST hdr/VR_TestInteractorStyle.hpp)
  28.  
  29. # create the executable
  30. add_executable(VR_HelloWorld ${SRC_LIST} ${HDR_LIST} src/VR_HelloWorld.cpp)
  31. target_link_libraries(VR_HelloWorld ${PROJECT_LIBRARIES})
  32. add_executable(VR_VolumeRenderExample ${SRC_LIST} ${HDR_LIST} src/VR_VolumeRenderExample.cpp)
  33. target_link_libraries(VR_VolumeRenderExample ${PROJECT_LIBRARIES})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement