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