c++ - QMake analog of cmake's "find_package" -


is there mechanism in qmake cmake's find_package?

if need include library installed on system, how can avoid write include path , library names manually? best practice?

if used library provides pkgconfig .pc file, can use link_pkgconfig in .pro file as:

config += link_pkgconfig pkgconfig += quazip 

if library provides command line utility compiler flags (like postgresql does), can call , assign add output corresponding variabla

includepath += $$system(pg_config --includedir) 

if library written in qt well, unlikely, possible provides qt module, qwt instance. in case can add .pro file:

config += qwt 

Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -