create CMake config.
change check version.
(see http://www.cmake.org/Wiki/CMake/Tutorials/Packaging)
support Xcode build.