[cmake] Export include dir to parent scope
[cmake] Only export to parent if there is a parent.