Change OutDir to TargetDir for resources.