Where do I put third-party libraries to set up a C++ Linux development environment?

后端 未结 4 1901
不知归路
不知归路 2020-12-22 19:15

I\'m not new in C++ although I\'m new in Linux. I\'m using CMake to precompile a cross-platform game engine with some third-party components, but I have a lot of doubts abou

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-22 20:00

    If you are installing the libraries with a package manager, they will probably all end up in the right place. If not you can get the compiler to search for the by providing the an additional search path using the -L flag. You should be able to pass this extra flag to CMake.

    Incidentally the -I can be used to add an extra directory to search for include files.

提交回复
热议问题