title: Include OpenSSL in a CMakeList.txt file
body: <p>I have a question for people who work with CMakeList.txt in C++. I want to use <code>Podofo</code> project (a project to parse &amp; create pdf).</p>
  
  <p>So my main function is simple as:</p>
  
  <pre class="lang-c prettyprint-override"><code>#include &lt;iostream&gt;
  #include &lt;podofo/podofo.h&gt;
  
  int main() {
    PoDoFo::PdfMemDocument pdf;
    pdf.Load("/Users/user/path/to.pdf");
  
    int nbOfPage = pdf.GetPageCount();
  
    std::cout &lt;&lt; "Our pdf have " &lt;&lt; nbOfPage &lt;&lt; " pages." &lt;&lt; std::endl;
    return 0;
  }
  </code></pre>
  
  <p>My CMakeList.txt is:</p>
  
  <pre class="lang-cmake prettyprint-override"><code>cmake_minimum_required(VERSION 3.7)
  project(untitled)
  
  set(CMAKE_CXX_STANDARD 14)
  
  set(SOURCE_FILES main.cpp)
  
  add_executable(untitled ${SOURCE_FILES})
  </code></pre>
  
  <p>But I am stuck with this error:</p>
  
  <pre class="lang-none prettyprint-override"><code>/usr/local/include/podofo/base/PdfEncrypt.h:44:10: fatal error: 'openssl/opensslconf.h' file not found
  #include &lt;openssl/opensslconf.h
  </code></pre>
  
  <p>I tried to include with <code>find_package</code>, <code>find_library</code> .. setting some variables but I do not find the way.</p>
  
  <p>My env is:</p>
  
  <ul>
  <li>macOS</li>
  <li>Clion</li>
  <li>Podofo installed via home-brew in <code>/usr/local/podofo</code></li>
  <li>OpenSSL installed via home-brew in <code>/usr/local/opt/openssl</code></li>
  </ul>
  
  <p>Thanks by advance community !!</p>