run configuration scripts automatically when calling cmake