#------------------------------------------------------------------- # This file is part of the CMake build system for OGRE # (Object-oriented Graphics Rendering Engine) # For the latest info, see http://www.ogre3d.org/ # # The contents of this file are placed in the public domain. Feel # free to make use of it in any way you like. #------------------------------------------------------------------- # - Try to find VIVE_HAND_TRACKING # Once done, this will define # # VIVE_HAND_TRACKING_FOUND - system has VIVE_HAND_TRACKING # VIVE_HAND_TRACKING_INCLUDE_DIRS - the VIVE_HAND_TRACKING include directories # VIVE_HAND_TRACKING_LIBRARIES - link these to use VIVE_HAND_TRACKING include(FindPkgMacros) findpkg_begin(VIVE_HAND_TRACKING) # Get path, convert backslashes as ${ENV_${var}} getenv_path(VIVE_HAND_TRACKING_HOME) # construct search paths set(VIVE_HAND_TRACKING_PREFIX_PATH ${VIVE_HAND_TRACKING_HOME} ${ENV_VIVE_HAND_TRACKING_HOME} ) set(VIVE_HAND_TRACKING_PREFIX_PATH ${VIVE_HAND_TRACKING_PREFIX_PATH} $ENV{SCOL_DEPENDENCIES_PATH}/ViveHandTracking) set(VIVE_HAND_TRACKING_INC_SEARCH_PATH ${VIVE_HAND_TRACKING_PREFIX_PATH}/include) set(VIVE_HAND_TRACKING_LIB_SEARCH_PATH ${VIVE_HAND_TRACKING_PREFIX_PATH}/libs/windows64) # redo search if prefix path changed clear_if_changed(VIVE_HAND_TRACKING_PREFIX_PATH VIVE_HAND_TRACKING_LIBRARY_FWK VIVE_HAND_TRACKING_LIBRARY_REL VIVE_HAND_TRACKING_LIBRARY_DBG VIVE_HAND_TRACKING_INCLUDE_DIR ) set(VIVE_HAND_TRACKING_LIBRARY_NAMES VIVE_HAND_TRACKING aristo_interface) get_debug_names(VIVE_HAND_TRACKING_LIBRARY_NAMES) findpkg_framework(ViveHandTracking) find_path(VIVE_HAND_TRACKING_INCLUDE_DIR NAMES interface_gesture.hpp HINTS ${VIVE_HAND_TRACKING_INC_SEARCH_PATH} ${VIVE_HAND_TRACKING_PKGC_INCLUDE_DIRS}) find_library(VIVE_HAND_TRACKING_LIBRARY_REL NAMES ${VIVE_HAND_TRACKING_LIBRARY_NAMES} HINTS ${VIVE_HAND_TRACKING_LIB_SEARCH_PATH} ${VIVE_HAND_TRACKING_PKGC_LIBRARY_DIRS} PATH_SUFFIXES "" Release RelWithDebInfo MinSizeRel ${ANDROID_ABI}) find_library(VIVE_HAND_TRACKING_LIBRARY_DBG NAMES ${VIVE_HAND_TRACKING_LIBRARY_NAMES_DBG} HINTS ${VIVE_HAND_TRACKING_LIB_SEARCH_PATH} ${VIVE_HAND_TRACKING_PKGC_LIBRARY_DIRS} PATH_SUFFIXES "" Debug ${ANDROID_ABI}) make_library_set(VIVE_HAND_TRACKING_LIBRARY) findpkg_finish(VIVE_HAND_TRACKING)