Page 1 of 1

how use pkg-config in CodeLite

Posted: Mon May 17, 2010 6:11 pm
by llerr
OS MS Windows
CodeLite 2.5.0.4025
g++

I try use pkg-config in my project
"project setting -> compiler -> additional search path " i write `pkg-config --cflags glib-2.0`
but in build console i see "-I-IC:/Gtk+/include/glib-2.0 -IC:/Gtk+/lib/glib-2.0/include " not all includes
if i write in
"project setting -> compiler -> compiler option" i see -g `pkg-config --cflags glib-2.0`

Re: how use pkg-config in CodeLite

Posted: Wed May 19, 2010 10:59 pm
by eranif
In project -> settings -> compiler, add to the 'Compiler Options' field the following line:

Code: Select all

$(shell pkg-config --cflags glib-2.0)
Note that codelite uses a semi-colon list, so if you have other options, you should separate them using ';'

Eran

Re: how use pkg-config in CodeLite

Posted: Wed May 19, 2010 11:37 pm
by llerr
thank you. It`s work.