cmake: Add lib/x64 path for leap motion v2

When downloading and extracting the leap developer kit:

Headers:
LeapDeveloperKit_2.3.1+31549_linux/LeapSDK/include

Libs:
LeapDeveloperKit_2.3.1+31549_linux/LeapSDK/lib/x64

With this change cmake finds the SDK with
-DLeapV2_ROOT_DIR=/path/to/LeapDeveloperKit_2.3.1+31549_linux/LeapSDK/
This commit is contained in:
Christoph Haag 2021-08-26 00:42:59 +02:00
parent 8b8891f60f
commit cf93be263f

View file

@ -42,7 +42,7 @@ find_library(
LeapV2_LIBRARY
NAMES Leap
PATHS ${LeapV2_ROOT_DIR}
PATH_SUFFIXES lib)
PATH_SUFFIXES lib lib/x64)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(LeapV2 REQUIRED_VARS LeapV2_INCLUDE_DIR
LeapV2_LIBRARY)