title: How to link Optick to a custom project with CMake?
body: <p>I relatively new to CMake and I'm trying to link different libraries to my projects. While I could handle some libraries like GLFW, I have troubles with Optick: <a href="https://github.com/bombomby/optick" rel="nofollow noreferrer">https://github.com/bombomby/optick</a></p>
  <p>The source tree is:</p>
  <ul>
  <li>CMakeLists</li>
  <li>src
  <ul>
  <li>CMakeLists</li>
  <li>main.cpp</li>
  </ul>
  </li>
  <li>optick</li>
  </ul>
  <p>The root CMakeList file:</p>
  <pre><code>cmake_minimum_required(VERSION 3.7)
  
  project( OptickTest )
  
  set_property(GLOBAL PROPERTY USE_FOLDERS ON)
  
  add_subdirectory(optick)
  add_subdirectory(src)
  </code></pre>
  <p>And the CMakeLists in the src folder:</p>
  <pre><code>cmake_minimum_required(VERSION 3.7)
  
  add_executable( OptickTest &quot;main.cpp&quot; )
  
  target_link_libraries( OptickTest OptickCore )
  </code></pre>
  <p>I can generate a Visual Studio solution, but when I execute it, it cannot find &quot;OptickCored.dll&quot;.</p>
  <p>Optick seems to be a simple and lightweight library, so I must have done something wrong here, but I can't find it.</p>