<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-text-flowed" style="font-family: -moz-fixed;
      font-size: 14px;" lang="x-western">Ah, yes this one works:
      <br>
      cmake_minimum_required(VERSION 2.8)
      <br>
      <br>
      IF(DEFINED USEFCGI)
      <br>
      &nbsp;SET(BACKENDLIB wtfcgi)
      <br>
      ELSE(DEFINED USEFCGI)
      <br>
      &nbsp;SET(BACKENDLIB wthttp)
      <br>
      ENDIF(DEFINED USEFCGI)
      <br>
      <br>
      if(WIN32)
      <br>
      &nbsp;INCLUDE_DIRECTORIES(D:/work/boost_1_46_1 D:/work/wt-3.1.10/src
      D:/work/wt-3.1.10/build)
      <br>
      &nbsp;LINK_DIRECTORIES(D:/work/wt-3.1.10/build/src/Release
      D:/work/wt-3.1.10/build/src/http/Release)
      <br>
      else(WIN32)
      <br>
      &nbsp;INCLUDE_DIRECTORIES(/usr/include/Wt)
      <br>
      endif(WIN32)
      <br>
      <br>
      ADD_EXECUTABLE(construction.wt
      <br>
      &nbsp;construction.cpp
      <br>
      )
      <br>
      <br>
      TARGET_LINK_LIBRARIES(construction.wt wt ${BACKENDLIB})
      <br>
      <br>
      Moved the ADD_EXECUTABLE below the LINK_DIRECTORIES.
      <br>
      <br>
      Thank you, Louis
      <br>
      <br>
      Am 29.07.2011 17:32, schrieb Michael Hertling:
      <br>
      <blockquote type="cite" style="color: #000000;">"The command will
        apply only to targets created <b class="moz-txt-star"><span
            class="moz-txt-tag">*</span>after<span class="moz-txt-tag">*</span></b>
        it is called."
        <br>
        <br>
        (LINK_DIRECTORIES()'s documentation)
        <br>
        <br>
        Regards,
        <br>
        <br>
        Michael
        <br>
        _______________________________________________
        <br>
        Powered by <a class="moz-txt-link-abbreviated"
          href="http://www.kitware.com">www.kitware.com</a>
        <br>
        <br>
        Visit other Kitware open-source projects at <a
          class="moz-txt-link-freetext"
          href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
        <br>
        <br>
        Please keep messages on-topic and check the CMake FAQ at: <a
          class="moz-txt-link-freetext"
          href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>
        <br>
        <br>
        Follow this link to subscribe/unsubscribe:
        <br>
        <a class="moz-txt-link-freetext"
          href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a>
        <br>
        <br>
      </blockquote>
    </div>
  </body>
</html>