Unable to link openssl libraries to CLion C++ program
<p>I have a <a href="https://www.jetbrains.com/help/clion/2016.1/meet-clion.html" rel="nofollow">CLion project</a>. Here is my CMakeLists.txt:</p>

<pre><code>cmake_minimum_required(VERSION 3.3)
project(Project)

&gt; set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
&gt; include_directories(/usr/include/openssl/) 
&gt; link_libraries(openssl)
&gt; set(SOURCE_FILES main.cpp Includes.h b.cpp b.h a.cpp
&gt; a.h) add_executable(Project ${SOURCE_FILES})
</code></pre>

<p>And here is error that I get:</p>

<pre><code>[ 25%] Linking CXX executable Project /usr/bin/ld: cannot find -lopenssl
collect2: error: ld returned 1 exit status
</code></pre>