www.pudn.com > write-VTKfile.rar > cmakelist.txt, change:2017-03-23,size:308b


cmake_minimum_required(VERSION 2.8) 
  
PROJECT(ReadSTL) 
  
find_package(VTK REQUIRED) 
include(${VTK_USE_FILE}) 
  
add_executable(ReadSTL MACOSX_BUNDLE ReadSTL) 
  
if(VTK_LIBRARIES) 
  target_link_libraries(ReadSTL ${VTK_LIBRARIES}) 
else() 
  target_link_libraries(ReadSTL vtkHybrid vtkWidgets) 
endif()