Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
imu
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
imu
Commits
49b8ffab
Commit
49b8ffab
authored
6 years ago
by
Joaquim Casals Buñuel
Browse files
Options
Downloads
Patches
Plain Diff
CMake fixes
parent
132ddd2d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
cmake_modules/FindwolfIMU.cmake
+22
-23
22 additions, 23 deletions
cmake_modules/FindwolfIMU.cmake
with
23 additions
and
24 deletions
CMakeLists.txt
+
1
−
1
View file @
49b8ffab
...
...
@@ -320,7 +320,7 @@ INSTALL(FILES ${HDRS_SERIALIZATION}
INSTALL
(
FILES
${
HDRS_YAML
}
DESTINATION include/iri-algorithms/wolf/plugin_
${
PROJECT_NAME
}
/
${
PROJECT_NAME
}
/yaml
)
INSTALL
(
FILES
IMU
.found
INSTALL
(
FILES
${
PROJECT_NAME
}
.found
DESTINATION include/iri-algorithms/wolf/plugin_
${
PROJECT_NAME
}
)
INSTALL
(
FILES
"
${
CMAKE_SOURCE_DIR
}
/cmake_modules/Findwolf
${
PROJECT_NAME
}
.cmake"
DESTINATION
"lib/cmake/wolf
${
PROJECT_NAME
}
"
)
...
...
This diff is collapsed.
Click to expand it.
cmake_modules/FindwolfIMU.cmake
+
22
−
23
View file @
49b8ffab
#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
)
IMU
_INCLUDE_DIRS
NAMES
IMU
.found
PATHS /usr/local/include/iri-algorithms/wolf/
plugin_IMU
)
#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
}
"
)
IF
(
IMU
_INCLUDE_DIRS
)
MESSAGE
(
"Found
IMU
include dirs:
${
IMU
_INCLUDE_DIRS
}
"
)
ELSE
MESSAGE
(
"Couldn't find
example
include dirs"
)
MESSAGE
(
"Couldn't find
IMU
include dirs"
)
ENDIF
FIND_LIBRARY
(
example
_LIBRARY
NAMES lib
example
.so
PATHS /usr/lib /usr/local/lib /usr/local/lib/iri-algorithms
)
IF
(
example
_LIBRARY
)
MESSAGE
(
"Found
example
lib:
${
example
_LIBRARY
}
"
)
IMU
_LIBRARY
NAMES lib
wolfIMU
.so
PATHS /usr/lib /usr/local/lib /usr/local/lib/iri-algorithms
)
IF
(
IMU
_LIBRARY
)
MESSAGE
(
"Found
IMU
lib:
${
IMU
_LIBRARY
}
"
)
ELSE
MESSAGE
(
"Couldn't find
example
lib"
)
MESSAGE
(
"Couldn't find
IMU
lib"
)
ENDIF
IF
(
example
_INCLUDE_DIRS AND
example
_LIBRARY
)
SET
(
example
_FOUND TRUE
)
ENDIF
(
example
_INCLUDE_DIRS AND
example
_LIBRARY
)
IF
(
IMU
_INCLUDE_DIRS AND
IMU
_LIBRARY
)
SET
(
IMU
_FOUND TRUE
)
ENDIF
(
IMU
_INCLUDE_DIRS AND
IMU
_LIBRARY
)
IF
(
example
_FOUND
)
IF
(
NOT
example
_FIND_QUIETLY
)
MESSAGE
(
STATUS
"Found
example:
${
example
_LIBRARY
}
"
)
ENDIF
(
NOT
example
_FIND_QUIETLY
)
ELSE
(
example
_FOUND
)
IF
(
IMU
_FOUND
)
IF
(
NOT
IMU
_FIND_QUIETLY
)
MESSAGE
(
STATUS
"Found
IMU:
${
IMU
_LIBRARY
}
"
)
ENDIF
(
NOT
IMU
_FIND_QUIETLY
)
ELSE
(
IMU
_FOUND
)
IF
(
wolf_FIND_REQUIRED
)
MESSAGE
(
FATAL_ERROR
"Could not find
example
"
)
MESSAGE
(
FATAL_ERROR
"Could not find
IMU
"
)
ENDIF
(
wolf_FIND_REQUIRED
)
ENDIF
(
example_FOUND
)
ENDIF
(
IMU_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