Updating CMake files to latest trunk. Added dependency information for regression tests and a few new macros for internal use.