<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi All,<br>
<br>
Can cmake generate .pc files? Can cmake generate .la files (gnu
convenience libraries)? Cmake internally generates all the requisite
info, how can it be accessed?<br>
<br>
I have to integrate a cmake based library into a GNUMake build. The
project has a <a
href="https://gitlab.kitware.com/sensei/sensei/blob/master/CMake/SENSEIConfig.cmake.in">cmake
config file</a> which works great with cmake's find_package
command when integrating with another project using cmake. What do
we do when a GNUMake based project wants to import our library?<br>
<br>
I hacked a <a
href="https://gitlab.kitware.com/sensei/sensei/blob/master/tools/sensei_config/CMakeLists.txt">cmake
script</a> to recursively walk our libraries dependencies and
inspect INTERFACE_INCLUDE_DIRECTORIES and INTERFACE_LINK_LIBRARIES
to put together a unique list of libraries and include dirs, which
can be used to generate the necessary info. Unfortunately so far I
can only make it work as an external cmake project which is
configured after we install our library. <br>
<br>
I would like to have a solution that generates the GNU compatible
configuration file (.pc,.la, etc) integrated into our build rather
than as an additional separate post install step. How have others
solved this issue?<br>
<br>
Thanks<br>
Burlen <br>
<br>
<br>
</body>
</html>