title: How to get the DCMTK library working in Qt Creator?
body: <p>I am trying to get DCMTK working in Qt Creator, but I got stuck at step 5. Please let me know if the other steps are wrong.</p>
  
  <p><strong>Tools:</strong></p>
  
  <p>Qt Creator: Qt Creator 3.5.1 (opensource), based on Qt 5.5.1 (MSVC 2013, 32 bit)</p>
  
  <p>Visual Studio:
  Microsoft Visual Studio Ultimate 2013, version 12.0.40629.00 Update 5</p>
  
  <p>DCMTK: v3.6.0</p>
  
  <p>CMake: v3.3.2</p>
  
  <p><strong>What I did:</strong></p>
  
  <ol>
  <li>I generated the project files using CMake</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/ITGKI.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ITGKI.jpg" alt="enter image description here"></a></p>
  
  <ol start="2">
  <li>I opened <code>C:\dcmtk-bin\DCMTK.sln</code> in Visual Studio and built <code>ALL_BUILD</code></li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/fK3FP.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fK3FP.jpg" alt="enter image description here"></a></p>
  
  <ol start="3">
  <li>I restarted Visual Studio in admin mode, opened <code>C:\dcmtk-bin\DCMTK.sln</code> and built <code>INSTALL</code></li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/0Avbe.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0Avbe.jpg" alt="enter image description here"></a></p>
  
  <ol start="4">
  <li><p>I started Qt Creator and created a new Qt Console Application</p></li>
  <li><p>What do I need to add to the .pro file in order to get my project working?
  I have tried to add code from related questions like <a href="https://stackoverflow.com/questions/16355634/how-can-i-add-dcmtk-libraries-to-qtcreator-project">this</a> AND <a href="https://stackoverflow.com/questions/5052148/how-to-use-dcmtk-in-qt">this</a> but I can't get rid of errors like </p></li>
  </ol>
  
  <blockquote>
    <p>Cannot open include file: 'dcmtk/config/osconfig.h': No such file or
    directory</p>
  </blockquote>
  
  <p>OR</p>
  
  <blockquote>
    <p>LNK1104: cannot open file 'dcmdata.lib'</p>
  </blockquote>
  
  <p>My <code>main.cpp</code> file contains the following code:</p>
  
  <pre><code>#include &lt;QCoreApplication&gt;
  #include &lt;QDebug&gt;
  #include "dcmtk/config/osconfig.h"
  #include "dcmtk/dcmdata/dctk.h"
  int main(int argc, char *argv[])
  {
      QCoreApplication a(argc, argv);
  
      QString mystr="Hellow world";
      qDebug() &lt;&lt;mystr;
      return a.exec();
  }
  </code></pre>