mac上安装glfw

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