<div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">Hello!<br>I&#39;m just adding the libraries (openCV and PCL) to my project:</div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">
<div>cmake_minimum_required(VERSION 2.8)</div><div>project(grabbing)</div><div>find_package(OpenCV REQUIRED)</div><div>find_package(PCL 1.3.0)</div><div>include_directories(${PCL_INCLUDE_DIRS})</div><div>link_directories(${PCL_LIBRARY_DIRS})</div>
<div>add_definitions(${PCL_DEFINITIONS})</div><div>add_executable(grabbing openNIgrabb.cpp)</div><div>target_link_libraries(grabbing ${OpenCV_LIBS} ${PCL_LIBRARIES})</div></div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">
<br></div><div style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">And I have a cmake error like that:</div><span style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); color: rgb(255, 0, 0); "><div>
<br></div>CMake Warning (dev) at D:/openCV/opencv/OpenCVConfig.cmake:69 (LINK_DIRECTORIES):</span><p style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "></p><p style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; ">
<span style="color: rgb(255, 0, 0); ">This command specifies the relative path</span></p><p style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; color: rgb(255, 0, 0); ">
</p><p style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "><span style="color: rgb(255, 0, 0); ">@CMAKE_LIB_DIRS_CONFIGCMAKE@</span></p>
<p style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; color: rgb(255, 0, 0); "></p><p style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; ">
<span style="color: rgb(255, 0, 0); ">as a link directory.</span></p><p style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; color: rgb(255, 0, 0); ">
</p><p style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "><span style="color: rgb(255, 0, 0); ">Policy CMP0015 is not set: link_directories() treats paths relative to the</span></p>
<p style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "><span style="color: rgb(255, 0, 0); ">source dir. Run &quot;cmake --help-policy CMP0015&quot; for policy details. Use the</span></p>
<p style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "><span style="color: rgb(255, 0, 0); ">cmake_policy command to set the policy and suppress this warning.</span></p>
<p style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "><span style="color: rgb(255, 0, 0); ">Call Stack (most recent call first):</span></p>
<p style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "><span style="color: rgb(255, 0, 0); ">CMakeLists.txt:5 (find_package)</span></p>
<p style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "><span style="color: rgb(255, 0, 0); ">This warning is for project developers. Use -Wno-dev to suppress it.</span></p>
<p style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; "><span style="color: rgb(255, 0, 0); "><br></span></p>
<p style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; ">I was trying to look for in the openCVConfig.make but I have no idea what&#39;s happening...any suggestion?<br>
Thanks so much,<br><font color="#888888">Javi</font></p>