Hi Alberto! On Tue, 09. Feb 2010, 13:50:26 +0100, Alberto Luaces wrote: > > All the information that is required for 1) and 2) is available from > > CMAKE; it is explicitly listed in CMakeCache.txt in the "Dependencies > > for the target" sections. It should be possible to export it from CMAKE > > into the .pc files. > > If any information is available from CMake, you can write it to the .pc > files easily with the CONFIGURE_FILE command. See how it is currently > done in the main CMakeLists.txt and the rest of > src/osg*/CMakeLists.txt.
Yes, but the information is in a form that is not directly usable. For example, this is in CMakeCache.txt: osgViewer_LIB_DEPENDS:STATIC=general;osgGA;general;osgText;general;osgDB;general;\ osgUtil;general;osg;general;OpenThreads;general;/usr/lib/libGLU.so;general;\ /usr/lib/libGL.so;general;/usr/lib/libSM.so;general;/usr/lib/libICE.so;\ general;/usr/lib/libX11.so;general;/usr/lib/libXext.so;general;; But one would want something like osgViewer_REQUIRES="openscenegraph-osgGA openscenegraph-osgText \ openscenegraph-osgDB openscenegraph-osgUtil openscenegraph-osg \ openthreads" for the "Requires:" field of the .pc file and something like osgViewer_LIBS="/usr/lib/libGLU.so /usr/lib/libGL.so /usr/lib/libSM.so /usr/lib/libICE.so /usr/lib/libX11.so /usr/lib/libXext.so" for the "Libs:" field. Also, one would want a variable that lists all the plugins that are built, and for this one would need to find and evaluate the various osgdb_*_LIB_DEPENDS variables. Is there some kind of general string/variable manipulation functionality that one can use to achieve this? Something like shell/sed inside cmake? Martin _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
