Merge pull request #1 from maciejaszek/master

Add CMakeLists.txt
CMake: change executable name, modify flags