An update will be applied December 9th, between 12PM and 1:00PM EST (UTC -5:00). The site may be slow during that time.

Commit 5886bcf8 authored by Alexis Girault's avatar Alexis Girault
Browse files

COMP: Update FindVRPN to link to thirdparty libs

parent 9a33b689
......@@ -7,11 +7,21 @@ find_path(VRPN_INCLUDE_DIR
)
mark_as_advanced(VRPN_INCLUDE_DIR)
#-----------------------------------------------------------------------------
# Find dependencies
#-----------------------------------------------------------------------------
list(APPEND CMAKE_MODULE_PATH ${VRPN_INCLUDE_DIR}/cmake)
find_package(Libusb1)
#-----------------------------------------------------------------------------
# Set up include dirs
#-----------------------------------------------------------------------------
set(VRPN_INCLUDE_DIRS "${VRPN_INCLUDE_DIR}")
list(APPEND VRPN_INCLUDE_DIRS "${VRPN_INCLUDE_DIR}/quat")
list(APPEND VRPN_INCLUDE_DIRS "${VRPN_INCLUDE_DIR}/atmellib")
list(APPEND VRPN_INCLUDE_DIRS "${VRPN_INCLUDE_DIR}/server_src")
list(APPEND VRPN_INCLUDE_DIRS "${VRPN_INCLUDE_DIR}/client_src")
#list(APPEND VRPN_INCLUDE_DIRS "${VRPN_INCLUDE_DIR}/server_src")
#list(APPEND VRPN_INCLUDE_DIRS "${VRPN_INCLUDE_DIR}/client_src")
list(APPEND VRPN_INCLUDE_DIRS "${LIBUSB1_INCLUDE_DIR}")
message(STATUS "VRPN_INCLUDE_DIRS : ${VRPN_INCLUDE_DIRS}")
#-----------------------------------------------------------------------------
......@@ -19,8 +29,8 @@ message(STATUS "VRPN_INCLUDE_DIRS : ${VRPN_INCLUDE_DIRS}")
#-----------------------------------------------------------------------------
find_library(VRPN_LIBRARY
NAMES
vrpn
vrpnb
vrpnserver
vrpnserverd
)
mark_as_advanced(VRPN_LIBRARY)
......@@ -31,7 +41,14 @@ find_library(QUAT_LIBRARY
)
mark_as_advanced(QUAT_LIBRARY)
set(VRPN_LIBRARIES ${VRPN_LIBRARY} ${QUAT_LIBRARY})
#-----------------------------------------------------------------------------
# Set up libraries
#-----------------------------------------------------------------------------
set(VRPN_LIBRARIES
${VRPN_LIBRARY}
${QUAT_LIBRARY}
${LIBUSB1_LIBRARY}
)
message(STATUS "VRPN_LIBRARIES : ${VRPN_LIBRARIES}")
#-----------------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment