linux cmake improvements

Added cocos/CMakeLists.txt
which controls all the rest of the Cmake files
Merge pull request #6539 from ricardoquesada/cmake_improvements

linux cmake improvements