Adding external library into Qt Creator project

后端 未结 8 1943
广开言路
广开言路 2020-11-22 09:39

How can I add external library into a project built by Qt Creator RC1 (version 0.9.2)? For example, the win32 function EnumProcesses() requires Psapi.lib<

8条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-22 10:22

    Are you using qmake projects? If so, you can add an external library using the LIBS variable. E.g:

    win32:LIBS += path/to/Psapi.lib
    

提交回复
热议问题