linux cmake improvements

Added cocos/CMakeLists.txt
which controls all the rest of the Cmake files