Using asymptote in latex

Is it possible to customise a build path to compile asymptote files in latex? e.g. I wish to compile the file

\documentclass{article}
\usepackage{amsmath, amsthm, float, asymptote}
\begin{document}
Hello world!
abc

\begin{figure}[ht]
\centering
\begin{asy}
pair A = dir(110);
pair B = dir(210);
pair C = dir(330);
dot("A",A,dir(A));
dot("B",B,dir(B));
dot("C",C,dir©);
draw(A–B--C–A--cycle);
\end{asy}
\end{figure}
\end{document}

Right now, I have packages build, language-latex, and latextools installed. Is there a relevant package/setup to do so that asymptote code can also compile? Thanks!