Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
laser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
wolf_projects
wolf_lib
plugins
laser
Commits
88fb0d1d
Commit
88fb0d1d
authored
6 years ago
by
Joaquim Casals Buñuel
Browse files
Options
Downloads
Patches
Plain Diff
CMake fixes
parent
a42a731b
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
cmake_modules/Findwolflaser.cmake
+22
-22
22 additions, 22 deletions
cmake_modules/Findwolflaser.cmake
with
22 additions
and
22 deletions
cmake_modules/Findwolflaser.cmake
+
22
−
22
View file @
88fb0d1d
#edit the following line to add the librarie's header files
FIND_PATH
(
example
_INCLUDE_DIRS
#
NAMES
wolf
.found
PATHS /usr/local/include/iri-algorithms/wolf/
example
)
laser
_INCLUDE_DIRS
NAMES
laser
.found
PATHS /usr/local/include/iri-algorithms/wolf/
plugin_laser
)
#change INCLUDE_DIRS to its parent directory
# get_filename_component(
example
_INCLUDE_DIRS ${example_INCLUDE_DIRS} DIRECTORY)
IF
(
example
_INCLUDE_DIRS
)
MESSAGE
(
"Found
example
include dirs:
${
example
_INCLUDE_DIRS
}
"
)
# get_filename_component(
laser
_INCLUDE_DIRS ${example_INCLUDE_DIRS} DIRECTORY)
IF
(
laser
_INCLUDE_DIRS
)
MESSAGE
(
"Found
laser
include dirs:
${
laser
_INCLUDE_DIRS
}
"
)
ELSE
MESSAGE
(
"Couldn't find
example
include dirs"
)
MESSAGE
(
"Couldn't find
laser
include dirs"
)
ENDIF
FIND_LIBRARY
(
example
_LIBRARY
NAMES lib
example
.so
laser
_LIBRARY
NAMES lib
wolflaser
.so
PATHS /usr/lib /usr/local/lib /usr/local/lib/iri-algorithms
)
IF
(
example
_LIBRARY
)
MESSAGE
(
"Found
example
lib:
${
example
_LIBRARY
}
"
)
IF
(
laser
_LIBRARY
)
MESSAGE
(
"Found
laser
lib:
${
laser
_LIBRARY
}
"
)
ELSE
MESSAGE
(
"Couldn't find
example
lib"
)
MESSAGE
(
"Couldn't find
laser
lib"
)
ENDIF
IF
(
example
_INCLUDE_DIRS AND
example
_LIBRARY
)
SET
(
example
_FOUND TRUE
)
ENDIF
(
example
_INCLUDE_DIRS AND
example
_LIBRARY
)
IF
(
laser
_INCLUDE_DIRS AND
laser
_LIBRARY
)
SET
(
laser
_FOUND TRUE
)
ENDIF
(
laser
_INCLUDE_DIRS AND
laser
_LIBRARY
)
IF
(
example
_FOUND
)
IF
(
NOT
example
_FIND_QUIETLY
)
MESSAGE
(
STATUS
"Found
example:
${
example
_LIBRARY
}
"
)
ENDIF
(
NOT
example
_FIND_QUIETLY
)
ELSE
(
example
_FOUND
)
IF
(
laser
_FOUND
)
IF
(
NOT
laser
_FIND_QUIETLY
)
MESSAGE
(
STATUS
"Found
laser:
${
laser
_LIBRARY
}
"
)
ENDIF
(
NOT
laser
_FIND_QUIETLY
)
ELSE
(
laser
_FOUND
)
IF
(
wolf_FIND_REQUIRED
)
MESSAGE
(
FATAL_ERROR
"Could not find
example
"
)
MESSAGE
(
FATAL_ERROR
"Could not find
laser
"
)
ENDIF
(
wolf_FIND_REQUIRED
)
ENDIF
(
example
_FOUND
)
ENDIF
(
laser
_FOUND
)
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