Closed panpawel88 closed 3 days ago
Hi @panpawel88 Installing RealSense with FetchContent is also discussed at the link below.
https://stackoverflow.com/questions/56593161/cmake-fetchcontent-does-not-copy-libraries
In their solution they fetch realsense2 instead of librealsense.
Hi @panpawel88 Do you require further assistance with this case, please? Thanks!
Hello @MartyG-RealSense ,
I couldn't get it working by FetchContent, but I've added realsense dependency by using vcpkg. My issue is solved.
Thanks
You are very welcome. Thanks very much for the update. As you have achieved a solution, I will close this case. Thanks again!
Hello,
I wanted to add Realsense library as a dependency to my project. Realsense library is added by
FetchContent
cmake feature. However cmake generation fails on my side.Here is my simple
CMakeLists.txt
file:Error log:
Correct path for
opengl_config.cmake
is/home/pawel/CLionProjects/realsense-test/cmake-build-debug/_deps/librealsense-src/CMake/opengl_config.cmake
.Is Realsense library compatible with
FetchContent
? In https://github.com/IntelRealSense/librealsense/issues/12150 somebody wanted to clone withFetchContent
, so I would expect that it should be working.