Switch to CMake scripts from 'platform' library