Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bno055_imu_driver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
bno055_imu_driver
Commits
533051b5
Commit
533051b5
authored
5 years ago
by
Alejandro Lopez Gestoso
Browse files
Options
Downloads
Patches
Plain Diff
Now it searchs for both libraries
parent
1828a89a
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
Findbno055_imu_driver.cmake
+12
-2
12 additions, 2 deletions
Findbno055_imu_driver.cmake
with
12 additions
and
2 deletions
Findbno055_imu_driver.cmake
+
12
−
2
View file @
533051b5
#edit the following line to add the librarie's header files
#edit the following line to add the librarie's header files
FIND_PATH
(
bno055_imu_driver_INCLUDE_DIR bno055_imu_driver.h bno055_imu_exceptions.h bno055_common.h /usr/include/iridrivers /usr/local/include/iridrivers
)
FIND_PATH
(
bno055_imu_driver_INCLUDE_DIR bno055_imu_driver.h bno055_imu_exceptions.h bno055_common.h
bno055_imu_sim.h
/usr/include/iridrivers /usr/local/include/iridrivers
)
FIND_LIBRARY
(
bno055_imu_driver_LIBRARY
FIND_LIBRARY
(
bno055_imu_driver_LIBRARY
_aux
NAMES bno055_imu_driver
NAMES bno055_imu_driver
PATHS /usr/lib /usr/local/lib /usr/local/lib/iridrivers
)
PATHS /usr/lib /usr/local/lib /usr/local/lib/iridrivers
)
FIND_LIBRARY
(
bno055_imu_sim_LIBRARY_aux
NAMES bno055_imu_sim
PATHS /usr/lib /usr/local/lib /usr/local/lib/iridrivers
)
IF
(
bno055_imu_driver_LIBRARY_aux AND bno055_imu_sim_LIBRARY_aux
)
SET
(
bno055_imu_driver_LIBRARY
${
bno055_imu_driver_LIBRARY_aux
}
${
bno055_imu_sim_LIBRARY_aux
}
)
ELSE
(
bno055_imu_driver_LIBRARY_aux AND bno055_imu_sim_LIBRARY_aux
)
MESSAGE
(
FATAL_ERROR
"Could not find bn055_imu_driver
${
bno055_imu_driver_LIBRARY_aux
}
or bno055_imu_sim
${
bno055_imu_sim_LIBRARY_aux
}
"
)
ENDIF
(
bno055_imu_driver_LIBRARY_aux AND bno055_imu_sim_LIBRARY_aux
)
IF
(
bno055_imu_driver_INCLUDE_DIR AND bno055_imu_driver_LIBRARY
)
IF
(
bno055_imu_driver_INCLUDE_DIR AND bno055_imu_driver_LIBRARY
)
SET
(
bno055_imu_driver_FOUND TRUE
)
SET
(
bno055_imu_driver_FOUND TRUE
)
ENDIF
(
bno055_imu_driver_INCLUDE_DIR AND bno055_imu_driver_LIBRARY
)
ENDIF
(
bno055_imu_driver_INCLUDE_DIR AND bno055_imu_driver_LIBRARY
)
...
...
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