Move layout "exe" to cpp