-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try to find external qpOASES before falling back on embedded version
- Loading branch information
1 parent
772d658
commit ef345b9
Showing
5 changed files
with
37 additions
and
8 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,23 @@ | ||
# Find the qpOASES includes and libraries. | ||
# The following variables are set if qpOASES is found. If qpOASES is not | ||
# found, qpOASES_FOUND is set to false. | ||
# qpOASES_FOUND - True when the qpOASES include directory is found. | ||
# qpOASES_INCLUDE_DIRS - the path to where the qpOASES include files are. | ||
# qpOASES_LIBRARIES - The libraries to link against qpOASES | ||
|
||
include(FindPackageHandleStandardArgs) | ||
|
||
find_path(qpOASES_INCLUDE_DIR | ||
NAMES qpOASES.hpp | ||
PATH_SUFFIXES include | ||
) | ||
|
||
find_library(qpOASES_LIBRARY | ||
NAMES qpOASES | ||
PATH_SUFFIXES lib | ||
) | ||
|
||
set(qpOASES_INCLUDE_DIRS ${qpOASES_INCLUDE_DIR}) | ||
set(qpOASES_LIBRARIES ${qpOASES_LIBRARY}) | ||
|
||
find_package_handle_standard_args(qpOASES DEFAULT_MSG qpOASES_LIBRARIES qpOASES_INCLUDE_DIRS) |