-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport #761 to DART 4.3 as a single commit
# Conflicts: # CMakeLists.txt # cmake/FindFLANN.cmake # unittests/CMakeLists.txt
- Loading branch information
Showing
5 changed files
with
39 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,35 @@ | ||
# Copyright (c) 2015, Georgia Tech Graphics Lab and Humanoid Robotics Lab | ||
# This file is provided under the "BSD-style" License | ||
|
||
# Find FLANN | ||
# | ||
# This sets the following variables: | ||
# FLANN_FOUND | ||
# FLANN_INCLUDE_DIRS | ||
# FLANN_LIBRARIES | ||
# FLANN_VERSION | ||
|
||
find_package(PkgConfig QUIET) | ||
|
||
pkg_check_modules(PC_FLANN flann) | ||
find_path(FLANN_INCLUDE_DIR | ||
# Check to see if pkgconfig is installed. | ||
pkg_check_modules(PC_FLANN flann QUIET) | ||
|
||
# Include directories | ||
find_path(FLANN_INCLUDE_DIRS | ||
NAMES flann/flann.h | ||
HINTS ${PC_FLANN_INCLUDEDIR} | ||
PATHS "${CMAKE_INSTALL_PREFIX}/include") | ||
|
||
set(FLANN_INCLUDE_DIRS ${FLANN_INCLUDE_DIR}) | ||
# Libraries | ||
find_library(FLANN_LIBRARIES flann_cpp | ||
HINTS ${PC_FLANN_LIBDIR}) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(FLANN DEFAULT_MSG FLANN_INCLUDE_DIR) | ||
# Version | ||
set(FLANN_VERSION ${PC_FLANN_VERSION}) | ||
|
||
mark_as_advanced(FLANN_INCLUDE_DIR) | ||
# Set (NAME)_FOUND if all the variables and the version are satisfied. | ||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(FLANN | ||
FAIL_MESSAGE DEFAULT_MSG | ||
REQUIRED_VARS FLANN_INCLUDE_DIRS FLANN_LIBRARIES | ||
VERSION_VAR FLANN_VERSION) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters