mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-09 02:42:19 +02:00
parent
22a22625c4
commit
6b549a5269
3 changed files with 0 additions and 80 deletions
|
@ -1,44 +0,0 @@
|
|||
# Try to find the LeapMotion library
|
||||
#
|
||||
# You must provide a LEAPMOTION_ROOT_DIR which contains lib and include directories
|
||||
#
|
||||
# Once done this will define
|
||||
#
|
||||
# LEAPMOTION_FOUND - system found LEAPMOTION
|
||||
# LEAPMOTION_INCLUDE_DIRS - the LEAPMOTION include directory
|
||||
# LEAPMOTION_LIBRARIES - Link this to use LEAPMOTION
|
||||
#
|
||||
# Created on 6/2/2014 by Sam Cake
|
||||
# Copyright (c) 2014 High Fidelity
|
||||
#
|
||||
|
||||
if (LEAPMOTION_LIBRARIES AND LEAPMOTION_INCLUDE_DIRS)
|
||||
# in cache already
|
||||
set(LEAPMOTION_FOUND TRUE)
|
||||
else (LEAPMOTION_LIBRARIES AND LEAPMOTION_INCLUDE_DIRS)
|
||||
set(LEAPMOTION_SEARCH_DIRS "${LEAPMOTION_ROOT_DIR}" "$ENV{HIFI_LIB_DIR}/leapmotion")
|
||||
|
||||
find_path(LEAPMOTION_INCLUDE_DIRS Leap.h ${LEAPMOTION_ROOT_DIR}/include)
|
||||
|
||||
if (WIN32)
|
||||
find_library(LEAPMOTION_LIBRARIES Leap.lib ${LEAPMOTION_ROOT_DIR}/lib/x86)
|
||||
endif (WIN32)
|
||||
|
||||
if (LEAPMOTION_INCLUDE_DIRS AND LEAPMOTION_LIBRARIES)
|
||||
set(LEAPMOTION_FOUND TRUE)
|
||||
endif (LEAPMOTION_INCLUDE_DIRS AND LEAPMOTION_LIBRARIES)
|
||||
|
||||
if (LEAPMOTION_FOUND)
|
||||
if (NOT LEAPMOTION_FIND_QUIETLY)
|
||||
message(STATUS "Found LEAPMOTION... ${LEAPMOTION_LIBRARIES}")
|
||||
endif (NOT LEAPMOTION_FIND_QUIETLY)
|
||||
else ()
|
||||
if (LEAPMOTION_FIND_REQUIRED)
|
||||
message(FATAL_ERROR "Could not find LEAPMOTION")
|
||||
endif (LEAPMOTION_FIND_REQUIRED)
|
||||
endif ()
|
||||
|
||||
# show the LEAPMOTION_INCLUDE_DIRS and LEAPMOTION_LIBRARIES variables only in the advanced view
|
||||
mark_as_advanced(LEAPMOTION_INCLUDE_DIRS LEAPMOTION_LIBRARIES)
|
||||
|
||||
endif (LEAPMOTION_LIBRARIES AND LEAPMOTION_INCLUDE_DIRS)
|
|
@ -18,7 +18,6 @@ set(LIBOVR_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/external/oculus")
|
|||
set(PRIOVR_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/external/priovr")
|
||||
set(SIXENSE_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/external/Sixense")
|
||||
set(VISAGE_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/external/visage")
|
||||
set(LEAPMOTION_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/external/leapmotion")
|
||||
|
||||
find_package(Qt5LinguistTools REQUIRED)
|
||||
find_package(Qt5LinguistToolsMacros)
|
||||
|
@ -139,7 +138,6 @@ find_package(PrioVR)
|
|||
find_package(SDL)
|
||||
find_package(Sixense)
|
||||
find_package(Visage)
|
||||
find_package(LeapMotion)
|
||||
find_package(ZLIB)
|
||||
find_package(Qxmpp)
|
||||
|
||||
|
@ -195,13 +193,6 @@ if (PRIOVR_FOUND AND NOT DISABLE_PRIOVR)
|
|||
target_link_libraries(${TARGET_NAME} "${PRIOVR_LIBRARIES}")
|
||||
endif (PRIOVR_FOUND AND NOT DISABLE_PRIOVR)
|
||||
|
||||
# and with LeapMotion library
|
||||
if (LEAPMOTION_FOUND AND NOT DISABLE_LEAPMOTION)
|
||||
add_definitions(-DHAVE_LEAPMOTION)
|
||||
include_directories(SYSTEM "${LEAPMOTION_INCLUDE_DIRS}")
|
||||
target_link_libraries(${TARGET_NAME} "${LEAPMOTION_LIBRARIES}")
|
||||
endif (LEAPMOTION_FOUND AND NOT DISABLE_LEAPMOTION)
|
||||
|
||||
# and with SDL for joysticks
|
||||
if (SDL_FOUND AND NOT DISABLE_SDL)
|
||||
add_definitions(-DHAVE_SDL)
|
||||
|
|
27
interface/external/leapmotion/readme.txt
vendored
27
interface/external/leapmotion/readme.txt
vendored
|
@ -1,27 +0,0 @@
|
|||
|
||||
Instructions for adding the Leap Motion library (LeapSDK) to Interface
|
||||
Sam Cake, June 10, 2014
|
||||
|
||||
You can download the Leap Developer Kit from https://developer.leapmotion.com/ (account creation required). Interface has been tested with SDK version LeapDeveloperKit_2.0.2+16391_win.
|
||||
|
||||
1. Copy the LeapSDK folders from the LeapDeveloperKit installation directory (Lib, Include) into the interface/externals/leapmotion folder.
|
||||
This readme.txt should be there as well.
|
||||
|
||||
The files neeeded in the folders are:
|
||||
|
||||
include/
|
||||
- Leap.h
|
||||
- Leap.i
|
||||
- LeapMath.h
|
||||
|
||||
lib/
|
||||
x86/
|
||||
- Leap.dll
|
||||
- Leap.lib
|
||||
- mscvcp120.dll (optional if you already have the Msdev 2012 SDK redistriuable installed)
|
||||
- mscvcr120.dll (optional if you already have the Msdev 2012 SDK redistriuable installed)
|
||||
|
||||
You may optionally choose to copy the SDK folders to a location outside the repository (so you can re-use with different checkouts and different projects).
|
||||
If so our CMake find module expects you to set the ENV variable 'HIFI_LIB_DIR' to a directory containing a subfolder 'leapmotion' that contains the 2 folders mentioned above (Include, Lib).
|
||||
|
||||
2. Clear your build directory, run cmake and build, and you should be all set.
|
Loading…
Reference in a new issue