title: Using Qt5 in a library
body: <p>I have a library that integrates some GTK functionnalities, and I decided to switch to Qt.
  So I created a test cmake file to try to integrate Qt5 but it does not work because when I load the libary dynamically using an executable I get &quot;undefined symbols&quot;.</p>
  <pre><code>undefined symbol: _ZN8UIWindow16staticMetaObjectE
  </code></pre>
  <p>I googled a lot, and it does not seems to be that simple si any kind of help, or comments would be much appreciated.</p>
  <p><a href="https://gist.github.com/athanase/5524646" rel="nofollow noreferrer">Here</a> are the relevant files I use.</p>