Ported scons to cmake

Able to compile with cmake. For this purpose,  CMakeLists.txt has been properly defined following SConstruct rules.