(io): make realsense support optional
Description
This one will resolve the issue of installing realsense package as requirement before using sight and give you an option to enable/disable it when it is needed.
Closes #673 (closed)
How to test it?
- uninstall realsense package on your computer if it is installed
- launch cmake-gui
- if you enable
SIGHT_ENABLE_REALSENSE
in cmake-gui configure should fails and ask you to install realsense package. - install the package again
- verify that sight succeeds to configure/build without the option
- verify that sight succeeds to configure/build with the option