Static libs & CMake import

Allows to build static and shared versions of the FANN libs and to import them properly into CMake [1] and pkg-config based projects.

[1] http://www.cmake.org/Wiki/CMake/Tutorials/How_to_create_a_ProjectConfig.cmake_file