Ticket #37276: patch-cmake-OpenCVFindOpenNI.cmake.diff
File patch-cmake-OpenCVFindOpenNI.cmake.diff, 1.4 KB (added by josephhowse@…, 12 years ago) |
---|
-
cmake/OpenCVFindOpenNI.cmake
old new 26 26 find_library(OPENNI_LIBRARY "OpenNI64" PATHS $ENV{OPEN_NI_LIB64} DOC "OpenNI library") 27 27 endif() 28 28 elseif(UNIX OR APPLE) 29 find_file(OPENNI_INCLUDES "XnCppWrapper.h" PATHS " /usr/include/ni" "/usr/include/openni" DOC "OpenNI c++ interface header")30 find_library(OPENNI_LIBRARY "OpenNI" PATHS " /usr/lib" DOC "OpenNI library")29 find_file(OPENNI_INCLUDES "XnCppWrapper.h" PATHS "@@PREFIX@@/include/ni" "@@PREFIX@@/include/openni" DOC "OpenNI c++ interface header") 30 find_library(OPENNI_LIBRARY "OpenNI" PATHS "@@PREFIX@@/lib" DOC "OpenNI library") 31 31 endif() 32 32 33 33 if(OPENNI_LIBRARY AND OPENNI_INCLUDES) … … 40 40 find_file(OPENNI_PRIME_SENSOR_MODULE "XnCore64.dll" PATHS "$ENV{OPEN_NI_INSTALL_PATH64}../PrimeSense/Sensor/Bin64" "$ENV{OPEN_NI_INSTALL_PATH64}../PrimeSense/SensorKinect/Bin64" DOC "Core library of PrimeSensor Modules for OpenNI") 41 41 endif() 42 42 elseif(UNIX OR APPLE) 43 find_library(OPENNI_PRIME_SENSOR_MODULE "XnCore" PATHS " /usr/lib" DOC "Core library of PrimeSensor Modules for OpenNI")43 find_library(OPENNI_PRIME_SENSOR_MODULE "XnCore" PATHS "@@PREFIX@@/lib" DOC "Core library of PrimeSensor Modules for OpenNI") 44 44 endif() 45 45 46 46 if(OPENNI_PRIME_SENSOR_MODULE)