title: usr/bin/ld: cannot find -l<name_of_the_library>
body: <p>I'm trying to compile a code with cmake and get this error (I'm pretty new with cmake):</p>
  <p><code>/usr/bin/ld: cannot find -lMPC</code></p>
  <p>Here is my CMakeLists.txt file:</p>
  <pre><code>cmake_minimum_required(VERSION 3.0.2)
  project(PX4Vision_AutonomousLanding)
  
  find_package(catkin REQUIRED COMPONENTS
    roscpp
    nav_msgs
    geometry_msgs
    mavros_msgs
  )
  
  include_directories(
    ${catkin_INCLUDE_DIRS}
  )
  
  catkin_package(
    CATKIN_DEPENDS roscpp nav_msgs geometry_msgs mavros_msgs
  )
  
  add_executable(offboard_node
    src/offboard_node.cpp
  )
  
  target_link_libraries(offboard_node
    MPC
    ${CMAKE_DL_LIBS}
    ${catkin_LIBRARIES} 
  )
  </code></pre>
  <p>Inside the folder where my CMakeLists.txt file is I have a subfolder &quot;src&quot; where I have two files: &quot;offboard_node.cpp&quot; and &quot;MPC.so&quot;. The first file contains the following line:</p>
  <p><code>handle = dlopen(&quot;./MPC.so&quot;, RTLD_LAZY);</code></p>