How to correctly setup perforce with a Unreal Project that uses C++ Code

How did you set these up?