Issues adding GLFW source to a CMake project

Note that I see you use target_link_libraries multiple times for the same project in the original version. I do not know if this is supported by cmake and so using one target_link_libraries for all libraries you want to link is best - if you need to you can concatenate them into a variable then use that.

Your current cmake adds dl and GL directly, so won’t work cross platform. Hence our starter uses ${OPENGL_LIBRARIES} and ${GLFW_LIBRARIES}.