Add the ES library with a proper CMake module