Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
iMSTK
iMSTK
Commits
5886bcf8
Commit
5886bcf8
authored
May 04, 2016
by
Alexis Girault
Browse files
COMP: Update FindVRPN to link to thirdparty libs
parent
9a33b689
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMake/FindVRPN.cmake
View file @
5886bcf8
...
...
@@ -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
vrpn
b
vrpn
server
vrpn
serverd
)
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
}
"
)
#-----------------------------------------------------------------------------
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment