chore(cmake): make capd optional