Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
morse_cmake
Commits
9cec7ce4
Commit
9cec7ce4
authored
Jun 12, 2017
by
BOUCHERIE Raphael
Browse files
Rename FindLIBHQR in FindHQR
parent
aeacaee2
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/find/FindHQR.cmake
0 → 100644
View file @
9cec7ce4
###
#
# @copyright (c) 2009-2014 The University of Tennessee and The University
# of Tennessee Research Foundation.
# All rights reserved.
# @copyright (c) 2012-2016 Inria. All rights reserved.
# @copyright (c) 2012-2014 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, Univ. Bordeaux. All rights reserved.
#
###
#
# - Try to find LibHQR
# Once done this will define
# LIBHQR_FOUND - System has LibHQR
# LIBHQR_INCLUDE_DIRS - The LibHQR include directories
# LIBHQR_LIBRARIES - The libraries needed to use LibHQR
# LIBHQR_DEFINITIONS - Compiler switches required for using LIBHQR
#=============================================================================
# Copyright 2012-2017 Inria.
# Copyright 2017 Raphael Boucherie.
# Copyright 2012-2017 Mathieu Faverge.
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
# (To distribute this file outside of CMake, substitute the full
# License text for the above reference.)
find_package
(
PkgConfig
)
if
(
PKG_CONFIG_FOUND
)
pkg_check_modules
(
PC_LIBHQR QUIET libhqr
)
endif
()
set
(
LIBHQR_LIBRARIES
${
LIBHQR_LIBRARY
}
)
set
(
LIBHQR_INCLUDE_DIRS
${
LIBHQR_INCLUDE_DIR
}
)
set
(
LIBHQR_DEFINITIONS
${
PC_LIBHQR_CFLAGS_OTHER
}
)
find_path
(
LIBHQR_INCLUDE_DIR
libhqr.h
HINTS
${
LIBHQR_DIR
}
${
PC_LIBHQR_INCLUDEDIR
}
${
PC_LIBHQR_INCLUDE_DIRS
}
PATH_SUFFIXES include include/libhqr
)
find_library
(
LIBHQR_LIBRARY
NAMES hqr
HINTS
${
LIBHQR_DIR
}
${
PC_LIBHQR_LIBDIR
}
${
PC_LIBHQR_LIBRARY_DIRS
}
PATH_SUFFIXES lib lib32 lib64 lib/libhqr lib32/libhqr lib64/libhqr
)
set
(
LIBHQR_DIR
""
CACHE PATH
"Path where LIBHQR was installed"
)
include
(
FindPackageHandleStandardArgs
)
# handle the QUIETLY and REQUIRED arguments
# and set LIBHQR_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args
(
LIBHQR DEFAULT_MSG LIBHQR_LIBRARY LIBHQR_INCLUDE_DIR
)
mark_as_advanced
(
LIBHQR_INCLUDE_DIR LIBHQR_LIBRARY
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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