title: How to export libraries with components in CMAKE?
body: <p>I have tried finding this information on the official CMAKE wiki as well as searching SO (currently waiting for boost to download so I can wade through the source looking for how they do it). I was hoping someone here may be able to help with how this is done, or point me in the right direction to the answers!</p>
  
  <p>I have a project that has several components. Right now, the project has subdirectories for libraries, and for applications. I am attempting to refactor the project and have applications in individual repositories and have the libraries exported.</p>
  
  <p>How do other projects make it possible to use the following command (specifically, specifying which components):</p>
  
  <p>FIND_PACKAGE (Boost REQUIRED COMPONENTS system date_time filesystem)</p>
  
  <p>I would like to use the same system for my own project:</p>
  
  <p>FIND_PACKAGE (Project REQUIRED COMPONENTS view gui execution analysis)</p>
  
  <p>Any help you could provide would be greatly appreciated.</p>