<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi<br>
    <br>
    I'm working on a project which is completely portable,<br>
    except of one COM wrapper Dll which should be built only on windows.<br>
    <br>
    To be consistent with the other parts I also want to build this COM
    Dll using CMake<br>
    like I do we the rest of the project.<br>
    <br>
    However I don't know how to do this "MS magic" with CMake.<br>
    <br>
    1.) How do I add a MIDL buildstep?<br>
    VS normally creates a Typelibrary (TLB) from the IDL file<br>
    and links this as resource into the DLL.<br>
    This is necesarry later on for Dll registration.<br>
    <br>
    2.) Also the &lt;foo&gt;_i.c and &lt;foo&gt;.h files are generated
    from &lt;foo&gt;.idl by the midl compiler<br>
    which must be compiled with the project.<br>
    <br>
    3.) There are additional rgs-files (registry resources) to add.<br>
    How do I do that?<br>
    <br>
    4.) Also the version info must be compiled into the dll. Based on a
    .rc file<br>
    which includes all vendor info.<br>
    So set_target_properties VERSION would not be sufficient.<br>
    <br>
    It would be great if somebody has an example for a simple COM Dll
    project.<br>
    I hope this is possible.<br>
    <br>
    <div class="moz-signature">-- <br>
      mit freundlichen Grüßen / best regards<br>
      <br>
      <b>Gerhard Gappmeier</b><br>
      ascolab GmbH - automation systems communication laboratory<br>
      Tel.: +49 9131 691 123<br>
      Fax: +49 9131 691 128<br>
      Web: <a class="moz-txt-link-freetext" href="http://www.ascolab.com">http://www.ascolab.com</a><br>
      GPG-KeyId: 5AAC50C4<br>
      GPG-Fingerprint: 967A 15F1 2788 164D CCA3 6C46 07CD 6F82 5AAC 50C4<br>
      <p style="font-family: helvetica; font-size: 8pt;">
        --<br>
        <b>ascolab GmbH</b><br>
        Geschäftsführer: Gerhard Gappmeier, Matthias Damm, Uwe
        Steinkrauß<br>
        Sitz der Gesellschaft: Am Weichselgarten 7 &#8226; 91058 Erlangen &#8226;
        Germany<br>
        Registernummer: HRB 9360<br>
        Registergericht: Amtsgericht Fürth<br>
      </p>
    </div>
  </body>
</html>