I'm trying to build the Visual Studio project for a kinect demo thing, rgbddemo. According to the instructions on the page, I need to set the PATH variable to include QMAKE from QT. I did that, but I keep getting this error:
CMake Error at CMakeLists.txt:1 (QT4_WRAP_CPP): Unknown CMake command "QT4_WRAP_CPP".
From what I could gather from google, it's a problem with CMake knowing where something from QT is. The page I linked above also mentions that you can set the path for QMAKE within CMake, but I don't know how to do that. Does anyone have any suggestions? Thanks.
I think this lines in your
CMakeLists.txt
file can help you.You could try inserting the line
into the top-level CMakeLists.txt file after the line
That should cause it to try to find
qmake
for you. I'm not sure why they don't have that though, but then I'm not that familiar with cmake.