mirror of
https://github.com/overte-org/overte.git
synced 2025-07-04 04:49:10 +02:00
cleanup the LibOVR and LeapMotion find modules by removing checks
This commit is contained in:
parent
1cfa4d7990
commit
1f0611ab09
2 changed files with 54 additions and 80 deletions
|
@ -12,10 +12,6 @@
|
|||
# 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 PATH_SUFFIXES include HINTS ${LEAPMOTION_SEARCH_DIRS})
|
||||
|
@ -31,21 +27,5 @@ else (LEAPMOTION_LIBRARIES AND LEAPMOTION_INCLUDE_DIRS)
|
|||
include(SelectLibraryConfigurations)
|
||||
select_library_configurations(LEAPMOTION)
|
||||
|
||||
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)
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(LEAPMOTION DEFAULT_MSG LEAPMOTION_INCLUDE_DIRS LEAPMOTION_LIBRARIES)
|
||||
|
|
|
@ -18,10 +18,6 @@
|
|||
# See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
#
|
||||
|
||||
if (LIBOVR_LIBRARIES AND LIBOVR_UTIL_INCLUDE_DIR AND LIBOVR_INCLUDE_DIRS)
|
||||
# in cache already
|
||||
set(LIBOVR_FIND_QUIETLY TRUE)
|
||||
else ()
|
||||
set(LIBOVR_SEARCH_DIRS "${LIBOVR_ROOT_DIR}" "$ENV{HIFI_LIB_DIR}/oculus")
|
||||
|
||||
find_path(LIBOVR_INCLUDE_DIRS OVR.h PATH_SUFFIXES Include HINTS ${LIBOVR_SEARCH_DIRS})
|
||||
|
@ -66,5 +62,3 @@ else ()
|
|||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(LIBOVR DEFAULT_MSG LIBOVR_INCLUDE_DIRS LIBOVR_UTIL_INCLUDE_DIR LIBOVR_LIBRARIES)
|
||||
|
||||
endif ()
|
||||
|
|
Loading…
Reference in a new issue