Added CPack capability to the cmake build system.