FindOPENNI.cmake 479 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
if (OPENNI_INCLUDE_DIR)
  # in cache already
  set(OPENNI_FOUND TRUE)
else (OPENNI_INCLUDE_DIR)


find_path(OPENNI_INCLUDE_DIR NAMES XnOpenNI.h
	  PATHS /usr/include/ni "C:/Program Files/OpenNI/Include"
	  ${OPENNI_INCLUDE_PATH}
          )

find_library( OPENNI_LIBRARY 
              OpenNI
              PATHS /usr/lib "C:/Program Files/OpenNI/Lib" )

if (OPENNI_INCLUDE_DIR)
  # in cache already
  set(OPENNI_FOUND TRUE)
endif(OPENNI_INCLUDE_DIR)

endif(OPENNI_INCLUDE_DIR)