cmake_minimum_required(VERSION 2.8.5 FATAL_ERROR) PROJECT (Step3) if(NOT VTK_BINARY_DIR) FIND_PACKAGE(VTK COMPONENTS vtkFiltersSources vtkRenderingCore vtkRenderingOpenGL ) include(${VTK_USE_FILE}) endif() add_executable(Cone3 MACOSX_BUNDLE Cone3.cxx) target_link_libraries(Cone3 ${VTK_LIBRARIES})