title: Add external libraries to CMakeList.txt c++
body: <p>I have my external library as shown in this picture that I create the symbolic links after:</p>
  
  <p><a href="https://i.stack.imgur.com/UJjv5.png" rel="noreferrer"><img src="https://i.stack.imgur.com/UJjv5.png" alt="enter image description here"></a></p>
  
  <p>and the headers related to the library in other file:</p>
  
  <p><a href="https://i.stack.imgur.com/WRp2a.png" rel="noreferrer"><img src="https://i.stack.imgur.com/WRp2a.png" alt="enter image description here"></a></p>
  
  <p>I'm working with <code>ROS ubuntu</code> and I need to add these libraries to my package to <code>CmakeList.txt</code>:</p>
  
  <pre><code>cmake_minimum_required(VERSION 2.4.6)
  include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
  
  rosbuild_init()
  
  #set the default path for built executables to the "bin" directory
  set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
  #set the default path for built libraries to the "lib" directory
  set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
  
  #common commands for building c++ executables and libraries
  #rosbuild_add_library(${PROJECT_NAME} src/example.cpp)
  #target_link_libraries(${PROJECT_NAME} another_library)
  #rosbuild_add_boost_directories()
  #rosbuild_link_boost(${PROJECT_NAME} thread)
  #rosbuild_add_executable(example examples/example.cpp)
  #target_link_libraries(example ${PROJECT_NAME})
  
  rosbuild_add_executable(kinectueye src/kinect_ueye.cpp)
  </code></pre>
  
  <p>So my question is how can I add these folders (I think the first one that I need to add I'm not sure) to my <code>CmakeList.txt</code> file so as I can use the classes and the methods in my program.</p>