cmake_minimum_required(VERSION 3.12 FATAL_ERROR) project(contourTriangulatorTest) find_package(VTK COMPONENTS CommonCore CommonColor IOXML InteractionStyle RenderingContextOpenGL2 RenderingCore RenderingFreeType RenderingGL2PSOpenGL2 RenderingOpenGL2 FiltersSources ) if (NOT VTK_FOUND) message(FATAL_ERROR "NewPony: Unable to find the VTK build folder.") endif() set(CMAKE_NINJA_FORCE_RESPONSE_FILE "ON" CACHE BOOL "Force Ninja to use response files.") add_executable(contourTriangulatorTest MACOSX_BUNDLE contourTriangulatorTest.cxx ) target_link_libraries(contourTriangulatorTest PRIVATE ${VTK_LIBRARIES} ) # vtk_module_autoinit is needed vtk_module_autoinit( TARGETS contourTriangulatorTest MODULES ${VTK_LIBRARIES} )