title: "No rule to make target" error in cmake when linking to shared library
body: <p>In Ubuntu, I have downloaded a third-party shared library, <code>mylibrary.so</code>, which I have placed in the directory <code>/home/karnivaurus/Libraries</code>. I have also placed the associated header file, <code>myheader.h</code>, in the directory <code>/home/karnivaurus/Headers</code>. I now want to link to this library in my C++ code, using CMake. Here is my CMakeLists.txt file:</p>
  
  <pre><code>cmake_minimum_required(VERSION 2.0.0)
  
  project(DemoProject)
  
  include_directories(/home/karnivaurus/Headers)
  
  add_executable(demo demo.cpp)
  
  target_link_libraries(demo /home/karnivaurus/Libraries/mylibrary)
  </code></pre>
  
  <p>However, this gives me the error message:</p>
  
  <pre><code>:-1: error: No rule to make target `/home/karnivaurus/Libraries/mylibrary', needed by `demo'.  Stop.
  </code></pre>
  
  <p>What's going on?</p>