i didnt get the rendering window output when I run my code

Start from the CylinderExample CMakeLists.txt and evolve it to your needs.