我正在读这个How to build & install GLFW 3 and use it in a Linux project因为我在安装glfw时遇到了麻烦。当我跑步" make install"这是输出。
blah blah blah build target [100%]
-- Install configuration: ""
-- Installing: /usr/local/include/GLFW
-- Installing: /usr/local/include/GLFW/glfw3.h
-- Installing: /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
-- Installing: /usr/local/lib/libglfw3.a
如何在/ usr / include中安装它?
答案 0 :(得分:2)
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr . && make all install
What is cmake equivalent of 'configure --prefix=DIR && make all install '?
的副本