1. 安裝xcodegit
2. 安裝cmakegithub
3. git clone https://github.com/glfw/glfw.gitxcode
4. cd <glfw_dir>; mkdir build; cd buildide
5. cmake ..ui
6. cmake -C cmake**install.cmakecode
7. cd <test_dir>; cp <glfw_dir>/examples/simple.c .it
8. cc -o simple simple.c -lglfw3 -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideotest