added cmake option for scripts