Systematic construction of conformal theories with higher-spin virasoro symmetries