mirror of
https://github.com/overte-org/overte.git
synced 2025-04-10 13:32:30 +02:00
remove Leap integration from CMakeLists
This commit is contained in:
parent
9eb31b48cc
commit
133ba3a230
2 changed files with 0 additions and 59 deletions
|
@ -1,52 +0,0 @@
|
|||
# - Try to find the Leap library
|
||||
#
|
||||
# You must provide a LEAP_ROOT_DIR which contains Lib and Include directories
|
||||
#
|
||||
# Once done this will define
|
||||
#
|
||||
# LEAP_FOUND - system found Leap
|
||||
# LEAP_INCLUDE_DIRS - the Leap include directory
|
||||
# LEAP_LIBRARIES - Link this to use Leap
|
||||
#
|
||||
# Created on 6/21/2013 by Eric Johnston,
|
||||
# adapted from FindLibOVR.cmake by Stephen Birarda
|
||||
# Copyright (c) 2013 High Fidelity
|
||||
#
|
||||
|
||||
if (LEAP_LIBRARIES AND LEAP_INCLUDE_DIRS)
|
||||
# in cache already
|
||||
set(LEAP_FOUND TRUE)
|
||||
else (LEAP_LIBRARIES AND LEAP_INCLUDE_DIRS)
|
||||
find_path(LEAP_INCLUDE_DIRS Leap.h ${LEAP_ROOT_DIR}/include)
|
||||
|
||||
if (LEAP_INCLUDE_DIRS)
|
||||
### If we found the real header, get the library as well.
|
||||
if (APPLE)
|
||||
find_library(LEAP_LIBRARIES libLeap.dylib ${LEAP_ROOT_DIR}/lib/libc++/)
|
||||
elseif (WIN32)
|
||||
find_library(LEAP_LIBRARIES libLeap.dylib ${LEAP_ROOT_DIR}/lib/libc++/)
|
||||
endif ()
|
||||
else ()
|
||||
### If we didn't find the real header, just use the stub header, and no library.
|
||||
find_path(LEAP_INCLUDE_DIRS Leap.h ${LEAP_ROOT_DIR}/stubs/include)
|
||||
endif ()
|
||||
|
||||
# If we're using the Leap stubs, there's only a header, no lib.
|
||||
if (LEAP_LIBRARIES AND LEAP_INCLUDE_DIRS)
|
||||
set(LEAP_FOUND TRUE)
|
||||
endif (LEAP_LIBRARIES AND LEAP_INCLUDE_DIRS)
|
||||
|
||||
if (LEAP_FOUND)
|
||||
if (NOT Leap_FIND_QUIETLY)
|
||||
message(STATUS "Found Leap: ${LEAP_LIBRARIES}")
|
||||
endif (NOT Leap_FIND_QUIETLY)
|
||||
else (LEAP_FOUND)
|
||||
if (Leap_FIND_REQUIRED)
|
||||
message(FATAL_ERROR "Could not find Leap")
|
||||
endif (Leap_FIND_REQUIRED)
|
||||
endif (LEAP_FOUND)
|
||||
|
||||
# show the LEAP_INCLUDE_DIRS and LEAP_LIBRARIES variables only in the advanced view
|
||||
mark_as_advanced(LEAP_INCLUDE_DIRS LEAP_LIBRARIES)
|
||||
|
||||
endif (LEAP_LIBRARIES AND LEAP_INCLUDE_DIRS)
|
|
@ -11,7 +11,6 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../cmake
|
|||
set(FACESHIFT_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external/faceshift)
|
||||
set(LIBOVR_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external/LibOVR)
|
||||
set(LIBVPX_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external/LibVPX)
|
||||
set(LEAP_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external/Leap)
|
||||
set(MOTIONDRIVER_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external/MotionDriver)
|
||||
set(OPENCV_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external/OpenCV)
|
||||
set(SIXENSE_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external/Sixense)
|
||||
|
@ -104,7 +103,6 @@ find_package(Faceshift)
|
|||
find_package(GLM REQUIRED)
|
||||
find_package(LibOVR)
|
||||
find_package(LibVPX)
|
||||
find_package(Leap)
|
||||
find_package(MotionDriver)
|
||||
find_package(OpenCV)
|
||||
find_package(OpenNI)
|
||||
|
@ -195,11 +193,6 @@ if (APPLE)
|
|||
${QuartzCore}
|
||||
${UVCCAMERACONTROL_LIBRARIES}
|
||||
)
|
||||
|
||||
if (LEAP_FOUND)
|
||||
target_link_libraries(${TARGET_NAME} ${LEAP_LIBRARIES})
|
||||
endif(LEAP_FOUND)
|
||||
|
||||
else (APPLE)
|
||||
find_package(OpenGL REQUIRED)
|
||||
find_package(GLUT REQUIRED)
|
||||
|
|
Loading…
Reference in a new issue