mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-26 07:18:46 +02:00
allow use of debug/release leapmotion library with select_library_configurations
This commit is contained in:
parent
03a052d89c
commit
e7269e809e
3 changed files with 8 additions and 4 deletions
|
@ -21,12 +21,16 @@ else (LEAPMOTION_LIBRARIES AND LEAPMOTION_INCLUDE_DIRS)
|
||||||
find_path(LEAPMOTION_INCLUDE_DIRS Leap.h PATH_SUFFIXES include HINTS ${LEAPMOTION_SEARCH_DIRS})
|
find_path(LEAPMOTION_INCLUDE_DIRS Leap.h PATH_SUFFIXES include HINTS ${LEAPMOTION_SEARCH_DIRS})
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
find_library(LEAPMOTION_LIBRARIES "lib/x86/Leap.lib" HINTS ${LEAPMOTION_SEARCH_DIRS})
|
find_library(LEAPMOTION_LIBRARY_DEBUG "lib/x86/Leapd.lib" HINTS ${LEAPMOTION_SEARCH_DIRS})
|
||||||
|
find_library(LEAPMOTION_LIBRARY_RELEASE "lib/x86/Leap.lib" HINTS ${LEAPMOTION_SEARCH_DIRS})
|
||||||
endif (WIN32)
|
endif (WIN32)
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
find_library(LEAPMOTION_LIBRARIES "lib/libLeap.dylib" HINTS ${LEAPMOTION_SEARCH_DIRS})
|
find_library(LEAPMOTION_LIBRARY_RELEASE "lib/libLeap.dylib" HINTS ${LEAPMOTION_SEARCH_DIRS})
|
||||||
endif (APPLE)
|
endif (APPLE)
|
||||||
|
|
||||||
|
include(SelectLibraryConfigurations)
|
||||||
|
select_library_configurations(LEAPMOTION)
|
||||||
|
|
||||||
if (LEAPMOTION_INCLUDE_DIRS AND LEAPMOTION_LIBRARIES)
|
if (LEAPMOTION_INCLUDE_DIRS AND LEAPMOTION_LIBRARIES)
|
||||||
set(LEAPMOTION_FOUND TRUE)
|
set(LEAPMOTION_FOUND TRUE)
|
||||||
endif (LEAPMOTION_INCLUDE_DIRS AND LEAPMOTION_LIBRARIES)
|
endif (LEAPMOTION_INCLUDE_DIRS AND LEAPMOTION_LIBRARIES)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Try to find the PrioVT library
|
# Try to find the PrioVR library
|
||||||
#
|
#
|
||||||
# You must provide a PRIOVR_ROOT_DIR which contains lib and include directories
|
# You must provide a PRIOVR_ROOT_DIR which contains lib and include directories
|
||||||
#
|
#
|
||||||
|
|
|
@ -206,7 +206,7 @@ if (LEAPMOTION_FOUND AND NOT DISABLE_LEAPMOTION)
|
||||||
if (APPLE OR UNIX)
|
if (APPLE OR UNIX)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -isystem ${LEAPMOTION_INCLUDE_DIRS}")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -isystem ${LEAPMOTION_INCLUDE_DIRS}")
|
||||||
endif ()
|
endif ()
|
||||||
target_link_libraries(${TARGET_NAME} "${LEAPMOTION_LIBRARIES}")
|
target_link_libraries(${TARGET_NAME} ${LEAPMOTION_LIBRARIES})
|
||||||
endif (LEAPMOTION_FOUND AND NOT DISABLE_LEAPMOTION)
|
endif (LEAPMOTION_FOUND AND NOT DISABLE_LEAPMOTION)
|
||||||
|
|
||||||
# and with SDL for joysticks
|
# and with SDL for joysticks
|
||||||
|
|
Loading…
Reference in a new issue