Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RobotAPI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software
ArmarX
RobotAPI
Commits
6ed9866e
Commit
6ed9866e
authored
6 years ago
by
Mirko Wächter
Browse files
Options
Downloads
Patches
Plain Diff
added NLOpt Find script
parent
c23a486f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
etc/cmake/FindNLOPT.cmake
+41
-0
41 additions, 0 deletions
etc/cmake/FindNLOPT.cmake
with
41 additions
and
0 deletions
etc/cmake/FindNLOPT.cmake
0 → 100644
+
41
−
0
View file @
6ed9866e
# Copyright (c) 2015, Georgia Tech Graphics Lab and Humanoid Robotics Lab
# 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 diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment