Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
segway_rmp_200
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
labrobotica
drivers
segway_rmp_200
Commits
a808074e
Commit
a808074e
authored
5 years ago
by
Fernando Herrero
Browse files
Options
Downloads
Patches
Plain Diff
Search in new installed path. Use plural variables
parent
2c4c181a
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
Findsegway_rmp_200.cmake
+22
-19
22 additions, 19 deletions
Findsegway_rmp_200.cmake
with
22 additions
and
19 deletions
Findsegway_rmp_200.cmake
+
22
−
19
View file @
a808074e
FIND_PATH
(
segway_rmp_200_INCLUDE_DIR segway_rmp200.h segway_rmp200_exceptions.h /usr/include/iri/segway_rmp_200 /usr/local/include/iri/segway_rmp_200
)
SET
(
name segway_rmp_200
)
#edit the following line to add the librarie's header files
SET
(
header_files segway_rmp200.h segway_rmp200_exceptions.h
)
FIND_LIBRARY
(
segway_rmp_200_LIBRARY
FIND_PATH
(
${
name
}
_INCLUDE_DIRS
${
header_files
}
/usr/include/iri/
${
name
}
/usr/local/include/iri/
${
name
}
)
NAMES segway_rmp_200
PATHS /usr/lib /usr/lib/iri/segway_rmp_200 /usr/local/lib /usr/local/lib/iri/segway_rmp_200
)
SET
(
segway_rmp_200_INCLUDE_DIRS
${
segway_rmp_200_INCLUDE_DIR
}
)
SET
(
segway_rmp_200_LIBRARIES
${
segway_rmp_200_LIBRARY
}
)
IF
(
segway_rmp_200_INCLUDE_DIR AND segway_rmp_200
_LIBRAR
Y
)
FIND_LIBRARY
(
${
name
}
_LIBRAR
IES
SET
(
segway_rmp_200_FOUND TRUE
)
NAMES
${
name
}
ENDIF
(
segway_rmp_200_INCLUDE_DIR AND segway_rmp_200_LIBRARY
)
PATHS /usr/lib /usr/lib/iri/
${
name
}
/usr/local/lib /usr/local/lib/iri/
${
name
}
)
IF
(
segway_rmp_200_FOUND
)
SET
(
${
name
}
_INCLUDE_DIR
${${
name
}
_INCLUDE_DIRS
}
)
IF
(
NOT segway_rmp_200_FIND_QUIETLY
)
SET
(
${
name
}
_LIBRARY
${${
name
}
_LIBRARIES
}
)
MESSAGE
(
STATUS
"Found Segway RMP200 driver:
${
segway_rmp_200_LIBRARY
}
"
)
ENDIF
(
NOT segway_rmp_200_FIND_QUIETLY
)
ELSE
(
segway_rmp_200_FOUND
)
IF
(
segway_rmp_200_FIND_REQUIRED
)
MESSAGE
(
FATAL_ERROR
"Could not find segway RMP200 driver"
)
ENDIF
(
segway_rmp_200_FIND_REQUIRED
)
ENDIF
(
segway_rmp_200_FOUND
)
IF
(
${
name
}
_INCLUDE_DIRS AND
${
name
}
_LIBRARIES
)
SET
(
${
name
}
_FOUND TRUE
)
ENDIF
(
${
name
}
_INCLUDE_DIRS AND
${
name
}
_LIBRARIES
)
IF
(
${
name
}
_FOUND
)
IF
(
NOT
${
name
}
_FIND_QUIETLY
)
MESSAGE
(
STATUS
"Found
${
name
}
:
${${
name
}
_LIBRARIES
}
"
)
ENDIF
(
NOT
${
name
}
_FIND_QUIETLY
)
ELSE
(
${
name
}
_FOUND
)
IF
(
${
name
}
_FIND_REQUIRED
)
MESSAGE
(
FATAL_ERROR
"Could not find
${
name
}
"
)
ENDIF
(
${
name
}
_FIND_REQUIRED
)
ENDIF
(
${
name
}
_FOUND
)
\ No newline at end of file
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