Qt Creator / QMake Linker Libraries

I am using SFML and I want to use Qt Creator with it. When I compile manually, I will put the following arguments to the -lsfmlsystem -lsfmlwindow .

How to do this if I use Qt Creator and (I think) QMake?

+6
c ++ qt-creator qmake sfml
source share
1 answer

Just add

 LIBS += -L/path/to/sfml -lsfmlsystem -lsfmlwindow 

to the .pro file.

You can open project files with QtCreator in the Projects view of the sidebar or find it with Ctrl-K. (BTW, the sidebar is not a list of icons to the left, it is the panel to the right of the one that can be shown / hidden with Alt-0.)

+7
source share

All Articles