mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 15:33:35 +02:00
ensure leapmotion dll path is found
This commit is contained in:
parent
bc0ddd8c1c
commit
e582709185
1 changed files with 11 additions and 3 deletions
|
@ -21,8 +21,7 @@ if (WIN32)
|
|||
find_library(LEAPMOTION_LIBRARY_DEBUG Leapd PATH_SUFFIXES lib/x86 HINTS ${LEAPMOTION_SEARCH_DIRS})
|
||||
find_library(LEAPMOTION_LIBRARY_RELEASE Leap PATH_SUFFIXES lib/x86 HINTS ${LEAPMOTION_SEARCH_DIRS})
|
||||
|
||||
get_filename_component(LEAPMOTION_DLL_PATH ${LEAPMOTION_LIBRARY_RELEASE} DIRECTORY CACHE)
|
||||
add_paths_to_lib_paths(${LEAPMOTION_DLL_PATH})
|
||||
find_path(LEAPMOTION_DLL_PATH Leap.dll PATH_SUFFIXES lib/x86 HINTS ${LEAPMOTION_SEARCH_DIRS})
|
||||
elseif (APPLE)
|
||||
find_library(LEAPMOTION_LIBRARY_RELEASE Leap PATH_SUFFIXES lib HINTS ${LEAPMOTION_SEARCH_DIRS})
|
||||
endif ()
|
||||
|
@ -32,7 +31,16 @@ select_library_configurations(LEAPMOTION)
|
|||
|
||||
set(LEAPMOTION_LIBRARIES "${LEAPMOTION_LIBRARY}")
|
||||
|
||||
set(LEAPMOTION_REQUIREMENTS LEAPMOTION_INCLUDE_DIRS LEAPMOTION_LIBRARIES)
|
||||
if (WIN32)
|
||||
list(APPEND LEAPMOTION_REQUIREMENTS LEAPMOTION_DLL_PATH)
|
||||
endif ()
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(LeapMotion DEFAULT_MSG LEAPMOTION_INCLUDE_DIRS LEAPMOTION_LIBRARIES)
|
||||
find_package_handle_standard_args(LeapMotion DEFAULT_MSG LEAPMOTION_REQUIREMENTS)
|
||||
|
||||
if (WIN32)
|
||||
add_paths_to_lib_paths(${LEAPMOTION_DLL_PATH})
|
||||
endif ()
|
||||
|
||||
mark_as_advanced(LEAPMOTION_INCLUDE_DIRS LEAPMOTION_LIBRARIES LEAPMOTION_SEARCH_DIRS)
|
||||
|
|
Loading…
Reference in a new issue