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