Add generating of export headers to CMake scripts. Mostly related to Windows.
Reference:
https://cmake.org/cmake/help/v3.0/module/GenerateExportHeader.html
http://gernotklingler.com/blog/creating-using-shared-libraries-different-compilers-different-operating-systems/