Hi Martin,

Martin Lambers writes:

[...]

>> 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;;

Yes, that's why I mentioned the CMakeLists files instead of CMakeCache
ones. After all, the information in the cache is provided by the
script. The variables found in the script are the ones that are actually
used for issuing the compilation and linking commands, so they are also
the best candidates for being placed unmodified into the .pc files. See
for example how its is already done with the version number or the
installation prefix, without having to read the cache at all.

The dependency information could not be directly available in an
existing variable, but I think that could be also composed with the
information already available in the CMakeLists.txt files.

Regards,

Alberto

_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to