1: \begin{abstract}
2: We give a notion of $BV$ function on an oriented manifold where a volume form and a family of lower semicontinuous quadratic forms
3: $G_p: T_pM \to [0,\infty]$ are given. %Using this notion, we generalize the structure theorem for $BV$ functions that holds in the Euclidean case.
4: When we consider sub-Riemannian manifolds, our definition coincides with the one given in the more general context of metric measure spaces which are doubling and support a Poincar\'e inequality. We focus on finite perimeter sets, i.e., sets whose characteristic function is BV, in sub-Riemannian manifolds. Under an assumption on the nilpotent approximation, we prove a blowup theorem, generalizing the one obtained for step-2 Carnot groups in \cite{FSSC-step2}.\footnote{This work was supported by the European research project AdG ERC ``GeMeThNES'', grant agreement number 246923, see also {\tt http://gemethnes.sns.it}}
5: \end{abstract}
6: