title: DSO missing from command line (With CMake)
body: <p>I am trying to convert a c++ project from Windows to Debian by compiling everything again with Cmake.</p>
  
  <p>I am not really use to work on Linux but I have managed to install everything properly.</p>
  
  <p>This is the error:</p>
  
  <pre><code>/usr/bin/ld: ../shared/libshared.a(BigNumber.cpp.o): undefined reference to symbol 'BN_new@@OPENSSL_1.0.2d'
  
  //usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2: error adding symbols: DSO missing from command line
  </code></pre>
  
  <p>This actually seems like a common question but I don't know what to do with Cmake. I already saw few answers like:</p>
  
  <p><a href="https://stackoverflow.com/questions/24096807/dso-missing-from-command-line">DSO missing from command line</a></p>
  
  <p><a href="https://stackoverflow.com/questions/14077611/how-do-i-tell-cmake-to-link-in-a-static-library-in-the-source-directory">How do I tell CMake to link in a static library in the source directory?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/11783932/how-to-add-linker-or-compile-flag-in-cmake-file">How to add linker or compile flag in cmake file?</a></p>
  
  <p>I am a bit confused, could you help me to understand what I need to do with Cmake please?</p>
  
  <p>Thank you</p>