mac下clion+glfw+glad环境搭建
-
clion
-
glfw下载编译。下载地址:glfw下载地址,下载完后是个zip包,解压,然后 命令行cd到该目录,
cmake . make make install
然后会看到glfw安装到了 /usr/local/lib
[ 95%] Built target monitors [ 98%] Built target events [100%] Built target icon Install the project... -- Install configuration: "" -- Up-to-date: /usr/local/include/GLFW -- Up-to-date: /usr/local/include/GLFW/glfw3.h -- Up-to-date: /usr/local/include/GLFW/glfw3native.h -- Installing: /usr/local/lib/cmake/glfw3/glfw3Config.cmake -- Installing: /usr/local/lib/cmake/glfw3/glfw3ConfigVersion.cmake -- Installing: /usr/local/lib/cmake/glfw3/glfw3Targets.cmake -- Installing: /usr/local/lib/cmake/glfw3/glfw3Targets-noconfig.cmake -- Installing: /usr/local/lib/pkgconfig/glfw3.pc -- Inst