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
d4e6048e
Commit
d4e6048e
authored
5 years ago
by
Alejandro Lopez Gestoso
Browse files
Options
Downloads
Patches
Plain Diff
Adapted to CMake plural variables *_DIRS and *_LIBRARIES
parent
6d12ff21
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Findbno055_imu_driver.cmake
+16
-11
16 additions, 11 deletions
Findbno055_imu_driver.cmake
src/CMakeLists.txt
+6
-6
6 additions, 6 deletions
src/CMakeLists.txt
with
22 additions
and
17 deletions
Findbno055_imu_driver.cmake
+
16
−
11
View file @
d4e6048e
#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 bno055_imu_sim.h /usr/local/include/iri/bno055_imu /usr/include/iri/bno055_imu
)
FIND_PATH
(
bno055_imu_driver_INCLUDE_DIR
S
bno055_imu_driver.h bno055_imu_exceptions.h bno055_common.h bno055_imu_sim.h /usr/local/include/iri/bno055_imu /usr/include/iri/bno055_imu
)
FIND_LIBRARY
(
bno055_imu_driver_LIBRAR
Y
_aux
FIND_LIBRARY
(
bno055_imu_driver_LIBRAR
IES
_aux
NAMES bno055_imu_driver
PATHS /usr/local/lib/iri/bno055_imu /usr/lib/iri/bno055_imu
)
FIND_LIBRARY
(
bno055_imu_sim_LIBRAR
Y
_aux
FIND_LIBRARY
(
bno055_imu_sim_LIBRAR
IES
_aux
NAMES bno055_imu_sim
PATHS /usr/local/lib/iri/bno055_imu /usr/lib/iri/bno055_imu
)
IF
(
bno055_imu_driver_LIBRAR
Y
_aux AND bno055_imu_sim_LIBRAR
Y
_aux
)
SET
(
bno055_imu_driver_LIBRAR
Y
${
bno055_imu_driver_LIBRAR
Y
_aux
}
${
bno055_imu_sim_LIBRAR
Y
_aux
}
)
ELSE
(
bno055_imu_driver_LIBRAR
Y
_aux AND bno055_imu_sim_LIBRAR
Y
_aux
)
MESSAGE
(
FATAL_ERROR
"Could not find bn055_imu_driver
${
bno055_imu_driver_LIBRAR
Y
_aux
}
or bno055_imu_sim
${
bno055_imu_sim_LIBRAR
Y
_aux
}
"
)
ENDIF
(
bno055_imu_driver_LIBRAR
Y
_aux AND bno055_imu_sim_LIBRAR
Y
_aux
)
IF
(
bno055_imu_driver_LIBRAR
IES
_aux AND bno055_imu_sim_LIBRAR
IES
_aux
)
SET
(
bno055_imu_driver_LIBRAR
IES
${
bno055_imu_driver_LIBRAR
IES
_aux
}
${
bno055_imu_sim_LIBRAR
IES
_aux
}
)
ELSE
(
bno055_imu_driver_LIBRAR
IES
_aux AND bno055_imu_sim_LIBRAR
IES
_aux
)
MESSAGE
(
FATAL_ERROR
"Could not find bn055_imu_driver
${
bno055_imu_driver_LIBRAR
IES
_aux
}
or bno055_imu_sim
${
bno055_imu_sim_LIBRAR
IES
_aux
}
"
)
ENDIF
(
bno055_imu_driver_LIBRAR
IES
_aux AND bno055_imu_sim_LIBRAR
IES
_aux
)
IF
(
bno055_imu_driver_INCLUDE_DIR AND bno055_imu_driver_LIBRARY
)
SET
(
bno055_imu_driver_INCLUDE_DIR
${
bno055_imu_driver_INCLUDE_DIRS
}
)
SET
(
bno055_imu_driver_LIBRARY
${
bno055_imu_driver_LIBRARIES
}
)
IF
(
bno055_imu_driver_INCLUDE_DIRS AND bno055_imu_driver_LIBRARIES
)
SET
(
bno055_imu_driver_FOUND TRUE
)
ENDIF
(
bno055_imu_driver_INCLUDE_DIR AND bno055_imu_driver_LIBRAR
Y
)
ENDIF
(
bno055_imu_driver_INCLUDE_DIR
S
AND bno055_imu_driver_LIBRAR
IES
)
IF
(
bno055_imu_driver_FOUND
)
IF
(
NOT bno055_imu_driver_FIND_QUIETLY
)
MESSAGE
(
STATUS
"Found bno055_imu_driver:
${
bno055_imu_driver_LIBRAR
Y
}
"
)
MESSAGE
(
STATUS
"Found bno055_imu_driver:
${
bno055_imu_driver_LIBRAR
IES
}
"
)
ENDIF
(
NOT bno055_imu_driver_FIND_QUIETLY
)
ELSE
(
bno055_imu_driver_FOUND
)
IF
(
bno055_imu_driver_FIND_REQUIRED
)
...
...
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
6
−
6
View file @
d4e6048e
...
...
@@ -11,19 +11,19 @@ FIND_PACKAGE(iriutils REQUIRED)
FIND_PACKAGE
(
comm REQUIRED
)
# add the necessary include directories
INCLUDE_DIRECTORIES
(
../include
)
INCLUDE_DIRECTORIES
(
${
iriutils_INCLUDE_DIR
}
)
INCLUDE_DIRECTORIES
(
${
comm_INCLUDE_DIR
}
)
INCLUDE_DIRECTORIES
(
${
iriutils_INCLUDE_DIR
S
}
)
INCLUDE_DIRECTORIES
(
${
comm_INCLUDE_DIR
S
}
)
# create the shared library
ADD_LIBRARY
(
bno055_imu_driver SHARED
${
sources
}
)
# link necessary libraries
TARGET_LINK_LIBRARIES
(
bno055_imu_driver
${
iriutils_LIBRAR
Y
}
)
TARGET_LINK_LIBRARIES
(
bno055_imu_driver
${
comm_LIBRAR
Y
}
)
TARGET_LINK_LIBRARIES
(
bno055_imu_driver
${
iriutils_LIBRAR
IES
}
)
TARGET_LINK_LIBRARIES
(
bno055_imu_driver
${
comm_LIBRAR
IES
}
)
# create the shared library
ADD_LIBRARY
(
bno055_imu_sim SHARED
${
sources_sim
}
)
# link necessary libraries
TARGET_LINK_LIBRARIES
(
bno055_imu_sim
${
iriutils_LIBRAR
Y
}
)
TARGET_LINK_LIBRARIES
(
bno055_imu_sim
${
comm_LIBRAR
Y
}
)
TARGET_LINK_LIBRARIES
(
bno055_imu_sim
${
iriutils_LIBRAR
IES
}
)
TARGET_LINK_LIBRARIES
(
bno055_imu_sim
${
comm_LIBRAR
IES
}
)
INSTALL
(
TARGETS bno055_imu_driver
RUNTIME DESTINATION bin
...
...
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