I missed .pc files so I can use pkg-config --libs poco to find the libs or pkg-config --cflags for the includes.
Therefore I build a poco.pc.cmake file for my building system with cmake.
But you can use it too with a little changes for yours and it would be a great help for everyone.
- Code: Select all
prefix=${CMAKE_SOURCE_DIR}
exec_prefix=${CMAKE_SOURCE_DIR}
libdir=${LIB_INSTALL_DIR}
includedir=${INCLUDE_INSTALL_DIR}
Name: poco
Description: C++ Portable Components
Requires:
Version: 1.3.3p1
Libs: -L${LIB_INSTALL_DIR} -lPocoFoundation -lPocoXML -lPocoUtil -lPocoNet
Cflags: -I${INCLUDE_INSTALL_DIR}
it's called poco.pc.cmake for me and this
- Code: Select all
prefix=${CMAKE_SOURCE_DIR}
exec_prefix=${CMAKE_SOURCE_DIR}
libdir=${LIB_INSTALL_DIR}
includedir=${INCLUDE_INSTALL_DIR}
Name: poco
Description: C++ Portable Components
Requires:
Version: 1.3.3p1
Libs: -L${LIB_INSTALL_DIR} -lPocoFoundationd -lPocoXMLd -lPocoUtild -lPocoNetd
Cflags: -I${INCLUDE_INSTALL_DIR}
is called pocod.pc.cmake for me
IIrc than you are useing make, then you need small changes like these cmake variables.
I think this would fit make
- Code: Select all
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: poco
Description: C++ Portable Components
Requires:
Version: @VERSION@
Libs: -L${libdir} -lPocoFoundation -lPocoXML -lPocoUtil -lPocoNet
Cflags: -I${includedir}
I hope it will help.
It looks bad this way, because the newlines will not be shown...
greets Serdar
{EDIT: fixed the code formatting}





