title: How to import jsoncpp in cLion?
body: <p>I am new to C++ and cLion and I'm using <a href="https://github.com/open-source-parsers/jsoncpp" rel="nofollow">JsonCpp</a> to parse object to text and vice-versa. I am a mac user and I have my .h jsoncpp files stored in /usr/include/jsoncpp and .dylib stored in /usr/lib.</p>
  
  <p>What is the a way to include jsoncpp library into my project? I've tried:</p>
  
  <pre><code>include_directories(/usr/include/jsoncpp)
  </code></pre>
  
  <p>I can <code>#include &lt;json.h&gt;</code> but there is another error as shown below:</p>
  
  <pre><code>Undefined symbols for architecture x86_64:
  "Json::Value::Value(Json::ValueType)", referenced from:
        Account::toJson() in Account.cpp.o
        StorageLoad::readfile(std::__1::basic_ifstream&lt;char, std::__1::char_traits&lt;char&gt; &gt;&amp;) in StorageLoad.cpp.o
    "Json::Value::Value(std::__1::basic_string&lt;char, std::__1::char_traits&lt;char&gt;, std::__1::allocator&lt;char&gt; &gt; const&amp;)", referenced from:
        Account::toJson() in Account.cpp.o
  </code></pre>
  
  <p>How to resolve this error? I've spent many hours trying but no avail.</p>