Add build dir support for cmake
Tests CmakeLists: added permissions to installed files
Tests CmakeLists: added permissions to installed files