Skip to content

Commit

Permalink
Simplify FindQVRPN.
Browse files Browse the repository at this point in the history
  • Loading branch information
rpavlik committed Jan 10, 2012
1 parent 0fb259a commit 2a42dc5
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions FindQVRPN.cmake
Expand Up @@ -22,7 +22,7 @@
# http://academic.cleardefinition.com
# Iowa State University HCI Graduate Program/VRAC
#
# Copyright Iowa State University 2009-2011.
# Copyright Iowa State University 2009-2012.
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
Expand Down Expand Up @@ -50,39 +50,27 @@ find_path(QVRPN_INCLUDE_DIR
include
include/qvrpn
HINTS
"${QVRPN_ROOT_DIR}"
PATHS
"${_progfiles}/QVRPN")
"${QVRPN_ROOT_DIR}")

find_library(QVRPN_LIBRARY
NAMES
qvrpn
PATH_SUFFIXES
${_libsuffixes}
HINTS
"${QVRPN_ROOT_DIR}"
PATHS
"${_progfiles}/QVRPN")

###
# Dependencies
###
set(_deps_libs)
set(_deps_includes)
set(_deps_check)
"${QVRPN_ROOT_DIR}")

# handle the QUIETLY and REQUIRED arguments and set xxx_FOUND to TRUE if
# all listed variables are TRUE
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(QVRPN
DEFAULT_MSG
QVRPN_LIBRARY
QVRPN_INCLUDE_DIR
${_deps_check})
QVRPN_INCLUDE_DIR)

if(QVRPN_FOUND)
set(QVRPN_INCLUDE_DIRS "${QVRPN_INCLUDE_DIR}" ${_deps_includes})
set(QVRPN_LIBRARIES "${QVRPN_LIBRARY}" ${_deps_libs})
set(QVRPN_INCLUDE_DIRS "${QVRPN_INCLUDE_DIR}")
set(QVRPN_LIBRARIES "${QVRPN_LIBRARY}")

mark_as_advanced(QVRPN_ROOT_DIR)
endif()
Expand Down

0 comments on commit 2a42dc5

Please sign in to comment.