mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 10:19:06 +02:00
move sixense directory to lowercase, have find module look in env dir
This commit is contained in:
parent
a364655f63
commit
3b06bbd88d
3 changed files with 8 additions and 5 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -33,8 +33,8 @@ interface/external/oculus/*
|
||||||
!interface/external/oculus/readme.txt
|
!interface/external/oculus/readme.txt
|
||||||
|
|
||||||
# Ignore Sixense
|
# Ignore Sixense
|
||||||
interface/external/Sixense/*
|
interface/external/sixense/*
|
||||||
!interface/external/Sixense/readme.txt
|
!interface/external/sixense/readme.txt
|
||||||
|
|
||||||
# Ignore Visage
|
# Ignore Visage
|
||||||
interface/external/visage/*
|
interface/external/visage/*
|
||||||
|
|
|
@ -16,12 +16,15 @@ if (SIXENSE_LIBRARIES AND SIXENSE_INCLUDE_DIRS)
|
||||||
# in cache already
|
# in cache already
|
||||||
set(SIXENSE_FOUND TRUE)
|
set(SIXENSE_FOUND TRUE)
|
||||||
else (SIXENSE_LIBRARIES AND SIXENSE_INCLUDE_DIRS)
|
else (SIXENSE_LIBRARIES AND SIXENSE_INCLUDE_DIRS)
|
||||||
find_path(SIXENSE_INCLUDE_DIRS sixense.h ${SIXENSE_ROOT_DIR}/include)
|
|
||||||
|
set(SIXENSE_SEARCH_DIRS "${SIXENSE_ROOT_DIR}" "$ENV{HIFI_ROOT_DIR}/sixense")
|
||||||
|
|
||||||
|
find_path(SIXENSE_INCLUDE_DIRS include/sixense.h HINTS "${SIXENSE_SEARCH_DIRS}")
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
find_library(SIXENSE_LIBRARIES libsixense_x64.dylib ${SIXENSE_ROOT_DIR}/lib/osx_x64/release_dll)
|
find_library(SIXENSE_LIBRARIES lib/osx_x64/release_dll/libsixense_x64.dylib HINTS "${SIXENSE_SEARCH_DIRS}")
|
||||||
elseif (UNIX)
|
elseif (UNIX)
|
||||||
find_library(SIXENSE_LIBRARIES libsixense_x64.so ${SIXENSE_ROOT_DIR}/lib/linux_x64/release)
|
find_library(SIXENSE_LIBRARIES lib/linux_x64/release/libsixense_x64.so HINTS "${SIXENSE_SEARCH_DIRS}")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (SIXENSE_INCLUDE_DIRS AND SIXENSE_LIBRARIES)
|
if (SIXENSE_INCLUDE_DIRS AND SIXENSE_LIBRARIES)
|
||||||
|
|
Loading…
Reference in a new issue