<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>I'm working on a library project that will be packaged in
multiple components. A "runtime" component will contain the
(shared) library, an a "dev" component the associated headers (and
perhaps other development-only artefacts).</p>
<p>I have successfully used the `install()` command to install these
two sets of artefacts, i.e. calling `install(... COMPONENT
runtime)`, as well as `install(... COMPONENT dev)`.</p>
<p>However, I'm now looking into calling `install(TARGETS ... EXPORT
...)`. The documentation explains how the list of installed
headerfiles can actually be inferred from the target itself (if
the target_include_directories have been appropriately set).
However, I can't call that function more than once on the same
target, and thus I seem to have no way to split the installation
into multiple components.</p>
<p>Does anyone know what I'm missing ? What is the suggested way to
package a project into the usual "runtime" and "dev" components ?<br>
</p>
<p>Many thanks,<br>
</p>
<div class="moz-signature">
<div class="moz-signature">
<div class="moz-signature">
<pre><img moz-do-not-send="false" src="cid:part1.70DD38FF.4958EB20@seefeld.name" alt="Stefan" width="123" height="77">
--
...ich hab' noch einen Koffer in Berlin...
</pre>
</div>
</div>
</div>
</body>
</html>