mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 21:03:27 +02:00
don't link a NOTFOUND leap library
This commit is contained in:
parent
010e6e5570
commit
1993601389
2 changed files with 7 additions and 3 deletions
|
@ -32,9 +32,9 @@ else (LEAP_LIBRARIES AND LEAP_INCLUDE_DIRS)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# If we're using the Leap stubs, there's only a header, no lib.
|
# If we're using the Leap stubs, there's only a header, no lib.
|
||||||
if (LEAP_INCLUDE_DIRS)
|
if (LEAP_LIBRARIES AND LEAP_INCLUDE_DIRS)
|
||||||
set(LEAP_FOUND TRUE)
|
set(LEAP_FOUND TRUE)
|
||||||
endif (LEAP_INCLUDE_DIRS)
|
endif (LEAP_LIBRARIES AND LEAP_INCLUDE_DIRS)
|
||||||
|
|
||||||
if (LEAP_FOUND)
|
if (LEAP_FOUND)
|
||||||
if (NOT Leap_FIND_QUIETLY)
|
if (NOT Leap_FIND_QUIETLY)
|
||||||
|
|
|
@ -153,8 +153,12 @@ if (APPLE)
|
||||||
${QuartzCore}
|
${QuartzCore}
|
||||||
${UVCCAMERACONTROL_LIBRARIES}
|
${UVCCAMERACONTROL_LIBRARIES}
|
||||||
${LIBOVR_LIBRARIES}
|
${LIBOVR_LIBRARIES}
|
||||||
${LEAP_LIBRARIES}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (LEAP_FOUND)
|
||||||
|
target_link_libraries(${TARGET_NAME} ${LEAP_LIBRARIES})
|
||||||
|
endif(LEAP_FOUND)
|
||||||
|
|
||||||
else (APPLE)
|
else (APPLE)
|
||||||
find_package(OpenGL REQUIRED)
|
find_package(OpenGL REQUIRED)
|
||||||
find_package(GLUT REQUIRED)
|
find_package(GLUT REQUIRED)
|
||||||
|
|
Loading…
Reference in a new issue