S
S
Sour_Lemon2021-08-09 14:07:16
CMake
Sour_Lemon, 2021-08-09 14:07:16

How to add library to qt creator?

I was going to learn opengl (book - learn opengl) and when it came to creating a project, a problem arose.
As indicated in the book, I built the GLFW library from source using cmake, but I don’t know how to connect it to the qt creator project (cmake build system). I searched the Internet, but to no avail.
OS - manjaro linux

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2021-08-09
@Sour_Lemon

What is not in the library packages? I would install the library from packages. Usually, to use a library in your program, you also need its dev package.
Usually decent libraries put in their dev package the means to find/use themselves. On Linux, this is usually the configuration file for pkg-config. You can use pkg-config in cmake using the module of the same name .
If the library supports cmake, then it puts search scripts for find_package .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question