add_executable(Example_UnstructuredGrid
  main.cxx
)

target_link_libraries(Example_UnstructuredGrid
  PRIVATE
    catalyst::catalyst
    TestingCommons
)

if(BUILD_TESTING)
  add_python_test(
    NAME Test_UnstructuredGrid
    SCRIPT testing/test.py ${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/lib/catalyst ${ParaView_DIR}/lib/catalyst
  )

  add_python_test(
    NAME Test_UnstructuredGrid_MPI
    SCRIPT testing/test.py ${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/lib/catalyst ${ParaView_DIR}/lib/catalyst true
  )
endif()
