title: How to port a qmake project to cmake
body: <p>I would like to "port" <a href="https://github.com/LTLMoP/slugs" rel="nofollow">this C++ project</a>, which uses <code>qmake</code> (i.e., a <a href="https://github.com/LTLMoP/slugs/blob/master/src/Tool.pro" rel="nofollow">Tool.pro</a> file) for building, to <code>cmake</code>.</p>
  
  <p>Essentially, I'm asking how to go about writing the necessary <code>CMakeLists.txt</code> file(s) by looking at the <code>Tool.pro</code> file above.</p>
  
  <p>This is what I've done so far:</p>
  
  <pre><code>include_directories(../lib/cudd-2.5.0/include BFAbstractionLibrary)
  
  add_executable(slugs BFAbstractionLibrary/bddDump.cpp BFAbstractionLibrary/BFCuddVarVector.cpp BFAbstractionLibrary/BFCudd.cpp BFAbstractionLibrary/BFCuddManager.cpp \
      BFAbstractionLibrary/BFCuddVarCube.cpp tools.cpp synthesisAlgorithm.cpp synthesisContextBasics.cpp variableManager.cpp \
      BFAbstractionLibrary/BFCuddMintermEnumerator.cpp)
  
  add_library(lcudd ../lib/cudd-2.5.0/cudd)
  add_library(ldddmp ../lib/cudd-2.5.0/dddmp)
  add_library(lmtr ../lib/cudd-2.5.0/mtr)
  add_library(lepd ../lib/cudd-2.5.0/epd)
  add_library(lst ../lib/cudd-2.5.0/st)
  add_library(lutil ../lib/cudd-2.5.0/util)
  
  target_link_libraries(slugs lcudd, lutil, lmtr, lst, ldddmp, lepd)
  </code></pre>
  
  <p>This is definitely missing the headers that are present in the <code>Tool.pro</code> file. I'm also not sure what I have to do with the flags in the first 24 lines of the <code>Tool.pro</code> file.</p>
  
  <p>Could you point me in the right direction please?</p>
  
  <ul>
  <li>PS1. I have already looked at the CMake Tutorial. </li>
  <li>PS2. I have tried
  two scripts: <code>q2c</code>, <code>qmake2cmake</code>. The former built an essentially
  empty <code>CMakeLists.txt</code> file. The latter built a seemingly OK
  file but then <code>make</code> failed saying it couldn't find some header file (which is located in a subdirectory).</li>
  <li>PS3. I have successfully built the project with <code>qmake</code>.</li>
  </ul>