-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from bluescarni/nlopt
NLopt
- Loading branch information
Showing
34 changed files
with
2,638 additions
and
125 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
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Copyright (c) 2015-2016, Humanoid Lab, Georgia Tech Research Corporation | ||
# Copyright (c) 2015-2017, Graphics Lab, Georgia Tech Research Corporation | ||
# Copyright (c) 2016-2017, Personal Robotics Lab, Carnegie Mellon University | ||
# This file is provided under the "BSD-style" License | ||
|
||
# Find NLOPT | ||
# | ||
# This sets the following variables: | ||
# NLOPT_FOUND | ||
# NLOPT_INCLUDE_DIRS | ||
# NLOPT_LIBRARIES | ||
# NLOPT_DEFINITIONS | ||
# NLOPT_VERSION | ||
|
||
find_package(PkgConfig QUIET) | ||
|
||
# Check to see if pkgconfig is installed. | ||
pkg_check_modules(PC_NLOPT nlopt QUIET) | ||
|
||
# Definitions | ||
set(NLOPT_DEFINITIONS ${PC_NLOPT_CFLAGS_OTHER}) | ||
|
||
# Include directories | ||
find_path(NLOPT_INCLUDE_DIRS | ||
NAMES nlopt.h | ||
HINTS ${PC_NLOPT_INCLUDEDIR} | ||
PATHS "${CMAKE_INSTALL_PREFIX}/include") | ||
|
||
# Libraries | ||
find_library(NLOPT_LIBRARIES | ||
NAMES nlopt nlopt_cxx | ||
HINTS ${PC_NLOPT_LIBDIR}) | ||
|
||
# Version | ||
set(NLOPT_VERSION ${PC_NLOPT_VERSION}) | ||
|
||
# Set (NAME)_FOUND if all the variables and the version are satisfied. | ||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(NLOPT | ||
FAIL_MESSAGE DEFAULT_MSG | ||
REQUIRED_VARS NLOPT_INCLUDE_DIRS NLOPT_LIBRARIES | ||
VERSION_VAR NLOPT_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* Copyright 2017 PaGMO development team | ||
|
||
This file is part of the PaGMO library. | ||
|
||
The PaGMO library is free software; you can redistribute it and/or modify | ||
it under the terms of either: | ||
|
||
* the GNU Lesser General Public License as published by the Free | ||
Software Foundation; either version 3 of the License, or (at your | ||
option) any later version. | ||
|
||
or | ||
|
||
* the GNU General Public License as published by the Free Software | ||
Foundation; either version 3 of the License, or (at your option) any | ||
later version. | ||
|
||
or both in parallel, as here. | ||
|
||
The PaGMO library is distributed in the hope that it will be useful, but | ||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | ||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
for more details. | ||
|
||
You should have received copies of the GNU General Public License and the | ||
GNU Lesser General Public License along with the PaGMO library. If not, | ||
see https://www.gnu.org/licenses/. */ | ||
|
||
#ifndef PAGMO_CONFIG_HPP | ||
#define PAGMO_CONFIG_HPP | ||
|
||
// Start of defines instantiated by CMake. | ||
// clang-format off | ||
#define PAGMO_VERSION @pagmo_VERSION@ | ||
@PAGMO_ENABLE_EIGEN3@ | ||
@PAGMO_ENABLE_NLOPT@ | ||
// clang-format on | ||
// End of defines instantiated by CMake. | ||
|
||
#endif |
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
NLopt solvers | ||
============= | ||
|
||
.. doxygenclass:: pagmo::nlopt | ||
:members: |
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
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
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
Oops, something went wrong.