Compiles with CMake and uses display object inside root instead of root itself.