Question: how to compile glfw with cmake?
Answer: Generating files with the CMake command-line tool To make an in-tree build, enter the root directory of the GLFW source tree (i.e. not the src subdirectory) and run CMake. The current directory is used as target path, while the path provided as an argument is used to find the source tree. cmake .