Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
battery_monitor
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
battery_monitor
Commits
589c2da3
Commit
589c2da3
authored
5 years ago
by
Fernando Herrero
Browse files
Options
Downloads
Patches
Plain Diff
Update Find cmake with correct paths and path order
parent
c2c2a194
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
Findbattery_monitor.cmake
+6
-4
6 additions, 4 deletions
Findbattery_monitor.cmake
with
6 additions
and
4 deletions
Findbattery_monitor.cmake
+
6
−
4
View file @
589c2da3
#edit the following line to add the librarie's header files
SET
(
name battery_monitor
)
FIND_PATH
(
${
name
}
_INCLUDE_DIRS
${
name
}
.h /usr/include/iri/
${
name
}
/usr/local/include/iri/
${
name
}
)
#edit the following line to add the librarie's header files
SET
(
header_files
${
name
}
.h
)
FIND_PATH
(
${
name
}
_INCLUDE_DIRS
${
header_files
}
.h /usr/local/include/iri/
${
name
}
/usr/include/iri/
${
name
}
)
FIND_LIBRARY
(
${
name
}
_LIBRARIES
NAMES
${
name
}
PATHS /usr/l
ib /usr
/lib/iri/
${
name
}
/usr/
local/lib /usr/local/
lib/iri/
${
name
}
)
PATHS /usr/l
ocal
/lib/iri/
${
name
}
/usr/lib/iri/
${
name
}
)
SET
(
${
name
}
_INCLUDE_DIR
${${
name
}
_INCLUDE_DIRS
}
)
SET
(
${
name
}
_LIBRARY
${${
name
}
_LIBRARIES
}
)
...
...
@@ -21,4 +23,4 @@ ELSE (${name}_FOUND)
IF
(
${
name
}
_FIND_REQUIRED
)
MESSAGE
(
FATAL_ERROR
"Could not find
${
name
}
"
)
ENDIF
(
${
name
}
_FIND_REQUIRED
)
ENDIF
(
${
name
}
_FOUND
)
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