Completed first version of cmake export. Tested with out of source build.