title: How to add a set of directory libraries to C++ and Code Blocks
body: <p>I have recently started programming C++ and can't figure out how one goes about adding libraries. I am using Code Blocks by the way.</p>
  <p>I have downloaded the PCL (Point Cloud Library) repository from GitHub. Now I would like to use some of these files in my own code.</p>
  <p>I have tried a simple example that starts by importing this:</p>
  <pre><code>#include &lt;pcl/io/include/pcl/io/pcd_io.h&gt;
  </code></pre>
  <p>Here I get the classic fatal error for no such file or directory. If I change it to the following it works: (To my understanding, this is because I have placed the library in the same directory as my code. This is the only way I have had any success so far)</p>
  <pre><code>#include &quot;pcl/io/include/pcl/io/pcd_io.h&quot;
  </code></pre>
  <p>The problem now is that in this included header file, other files are included from the same library, which gives the same error.</p>
  <p>I am planning on using many of the files in this library. Changing all of them seems ineffective and time consuming. Is there another way I can add all of these files to include them in an easier way?</p>
  <p>Here is a link to the repository if it helps to see the file structure or anything, I guess.
  <a href="https://github.com/PointCloudLibrary/pcl" rel="nofollow noreferrer">https://github.com/PointCloudLibrary/pcl</a></p>
  <p>On the website, they had this tutorial. I could not get this working: <a href="https://pcl.readthedocs.io/projects/tutorials/en/latest/using_pcl_pcl_config.html#using-pcl-pcl-config" rel="nofollow noreferrer">https://pcl.readthedocs.io/projects/tutorials/en/latest/using_pcl_pcl_config.html#using-pcl-pcl-config</a></p>