I am trying to work with a depth sensor and trying to get the grayscale image and display it with OpenCV. I can access the data from the depth sensor without any issues. But I g
project()
call should precede most of other commands call.
Normally, only cmake_minimum_required()
and variables assignments may come before the project()
.
Correct:
cmake_minimum_required(VERSION 2.8)
set(CMAKE_PREFIX_PATH "share")
project (depthDataCallBack)
find_package(royale REQUIRED)
find_package(OpenCV REQUIRED)
link_directories(${royale_LIB_DIR})
...