change cmake minimum to 2.8 and format in src/CMakeLists.txt