add_executable(Example_UnstructuredGrid
  main.cxx
)


add_executable(Example_UnstructuredNullMesh
  main.cxx
)
target_compile_definitions(Example_UnstructuredNullMesh PRIVATE NULLMESH)


target_link_libraries(Example_UnstructuredGrid
PRIVATE
catalyst::catalyst
TestingCommons
)

target_link_libraries(Example_UnstructuredNullMesh
  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_CATALYST_DIR}
  )

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

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