Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
986dc6c0
Commit
986dc6c0
authored
Jun 20, 2018
by
Simon Spannagel
Browse files
FindPeary: adapt to peary v0.9 and later
parent
f53ec1a6
Pipeline
#420671
passed with stages
in 11 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cmake/FindPeary.cmake
View file @
986dc6c0
...
...
@@ -6,17 +6,21 @@
MESSAGE
(
STATUS
"Looking for Peary..."
)
FIND_PATH
(
Peary_INCLUDE_DIR
S
NAMES
"peary/device/device.hpp"
PATHS
"$ENV{PEARYPATH}"
)
FIND_PATH
(
Peary_INCLUDE_DIR NAMES
"peary/device/device.hpp"
PATHS
"$ENV{PEARYPATH}"
)
FIND_LIBRARY
(
Peary_LIBRARIES NAMES
"peary"
HINTS
"$ENV{PEARYPATH}/lib"
)
LIST
(
APPEND Peary_INCLUDE_DIRS
"
${
Peary_INCLUDE_DIR
}
/peary/utils"
)
LIST
(
APPEND Peary_INCLUDE_DIRS
"
${
Peary_INCLUDE_DIR
}
/devices"
)
IF
(
Peary_FIND_COMPONENTS
)
FOREACH
(
component
${
Peary_FIND_COMPONENTS
}
)
STRING
(
TOLOWER
"
${
component
}
"
_COMP
)
FIND_PATH
(
Peary_COMP_INCLUDE NAMES
"devices/
${
_COMP
}
/
${
_COMP
}
.hpp"
PATHS
"$ENV{PEARYPATH}"
)
FIND_LIBRARY
(
Peary_COMP_LIB NAMES
"
${
component
}
"
HINTS
"$ENV{PEARYPATH}/lib"
)
FIND_PATH
(
Peary_COMP_INCLUDE NAMES
"devices/
${
component
}
/
${
component
}
Device.hpp"
PATHS
"$ENV{PEARYPATH}"
)
FIND_LIBRARY
(
Peary_COMP_LIB NAMES
"PearyDevice
${
component
}
"
HINTS
"$ENV{PEARYPATH}/lib"
)
IF
(
Peary_COMP_INCLUDE AND Peary_COMP_LIB
)
LIST
(
APPEND Peary_LIBRARIES
"
${
Peary_COMP_LIB
}
"
)
LIST
(
APPEND Peary_INCLUDE_DIRS
"
${
Peary_COMP_INCLUDE
}
/devices/
${
component
}
"
)
SET
(
Peary_
${
component
}
_FOUND TRUE
)
MESSAGE
(
STATUS
"Looking for Peary component:
${
component
}
-- Found"
)
ELSE
()
MESSAGE
(
STATUS
"Looking for Peary component:
${
component
}
-- NOTFOUND"
)
ENDIF
()
...
...
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