This a quick explanation of how I compile maps for TF2 using Hammer++
Included is a .cfg which has the exact compile options I use that you can import to use yourself
Get Hammer++ here: https://ficool2.github.io/HammerPlusPlus-Website/
VDC references:
https://developer.valvesoftware.com/wiki/VBSP
https://developer.valvesoftware.com/wiki/VVIS
https://developer.valvesoftware.com/wiki/VRAD
https://developer.valvesoftware.com/wiki/Command_line_options
Further reading for vrad lighting options: https://nodraw.net/2010/12/lighting-compile-options/