COMP: Update cmake build for tess.

CosmoTools dependencies are updated to include
CGAL, PnetCDF, etc. for tess. Further, tess now
has a master cmake file that detects whether tess
is being built within CosmoTools or standalone
and uses the corresponding cmake file.