CMake improviments and static.png