[cmake] make directory before output