Skip to content

CheckForModule

Repository source: CheckForModule

Question

If you have a question about this example, please use the VTK Discourse Forum

Code

CheckForModule.cxx

#include <vtkPolyData.h>

int main(int, char*[])
{

  return EXIT_SUCCESS;
}
cmake_minimum_required(VERSION 2.6)

project(CheckForModule)

find_package(VTK REQUIRED)
include(${VTK_USE_FILE})

find_package(VTK REQUIRED)
if(NOT vtkIOParallel_LOADED)
  message(FATAL_ERROR "vtkIOParallel is required but not available.")
endif()

add_executable(CheckForModule CheckForModule.cxx)
target_link_libraries(CheckForModule ${VTK_LIBRARIES})