[cmake] First full implementation of opwig's -I