cmake_minimum_required(VERSION 3.12 FATAL_ERROR) project(contourLoopExtractorTest) find_package(VTK COMPONENTS CommonCore CommonColor IOXML InteractionStyle RenderingContextOpenGL2 RenderingCore RenderingFreeType RenderingGL2PSOpenGL2 RenderingOpenGL2 FiltersCore FiltersSources FiltersGeometry FiltersExtraction FiltersModeling ) 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(contourLoopExtractorTest MACOSX_BUNDLE contourLoopExtractorTest.cxx ) target_link_libraries(contourLoopExtractorTest PRIVATE ${VTK_LIBRARIES} ) # vtk_module_autoinit is needed vtk_module_autoinit( TARGETS contourLoopExtractorTest MODULES ${VTK_LIBRARIES} )