Added CMakeLists.txt
Added static library compilation
Added target config choice
Added shared lib creation and release flags
Added library function generator
Merge branch 'cmake'