Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gnss
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
gnss
Commits
8f71404d
Commit
8f71404d
authored
5 years ago
by
Pep Martí Saumell
Browse files
Options
Downloads
Patches
Plain Diff
CMAKE: modified to find the gnss_utils library
parent
ea245bba
No related branches found
No related tags found
3 merge requests
!28
release after RAL
,
!27
After 2nd RAL submission
,
!10
Resolve "GAUSS Project"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+2
-1
2 additions, 1 deletion
CMakeLists.txt
cmake_modules/Findgnss_utils.cmake
+35
-0
35 additions, 0 deletions
cmake_modules/Findgnss_utils.cmake
with
37 additions
and
1 deletion
CMakeLists.txt
+
2
−
1
View file @
8f71404d
...
...
@@ -99,6 +99,7 @@ ENDIF(BUILD_EXAMPLES OR BUILD_TESTS)
#find dependencies.
# ============EXAMPLE==================
FIND_PACKAGE
(
wolf REQUIRED
)
FIND_PACKAGE
(
gnss_utils REQUIRED
)
#FIND_PATH(
# Suitesparse_INCLUDE_DIRS
...
...
@@ -247,7 +248,7 @@ ADD_LIBRARY(${PLUGIN_NAME}
#Link the created libraries
#===============EXAMPLE=========================
TARGET_LINK_LIBRARIES
(
${
PLUGIN_NAME
}
${
wolf_LIBRARIES
}
)
TARGET_LINK_LIBRARIES
(
${
PLUGIN_NAME
}
${
laser_scan
_utils_LIBRARY
}
)
TARGET_LINK_LIBRARIES
(
${
PLUGIN_NAME
}
${
gnss
_utils_LIBRARY
}
)
#Build tests
...
...
This diff is collapsed.
Click to expand it.
cmake_modules/Findgnss_utils.cmake
0 → 100644
+
35
−
0
View file @
8f71404d
FIND_PATH
(
gnss_utils_INCLUDE_DIRS
NAMES gnss_utils.h
PATHS /usr/local/include/gnss_utils
)
IF
(
gnss_utils_INCLUDE_DIRS
)
MESSAGE
(
"Found gnss_utils include dirs:
${
gnss_utils_INCLUDE_DIRS
}
"
)
ELSE
(
gnss_utils_INCLUDE_DIRS
)
MESSAGE
(
"Couldn't find gnss_utils include dirs"
)
ENDIF
(
gnss_utils_INCLUDE_DIRS
)
FIND_LIBRARY
(
gnss_utils_LIBRARIES
NAMES libgnss_utils.so libgnss_utils.dylib
PATHS /usr/local/lib/gnss_utils
)
IF
(
gnss_utils_LIBRARIES
)
MESSAGE
(
"Found gnss_utils lib:
${
gnss_utils_LIBRARIES
}
"
)
ELSE
(
gnss_utils_LIBRARIES
)
MESSAGE
(
"Couldn't find gnss_utils lib"
)
ENDIF
(
gnss_utils_LIBRARIES
)
IF
(
gnss_utils_INCLUDE_DIRS AND gnss_utils_LIBRARIES
)
SET
(
gnss_utils_FOUND TRUE
)
ELSE
(
gnss_utils_INCLUDE_DIRS AND gnss_utils_LIBRARIES
)
set
(
gnss_utils_FOUND FALSE
)
ENDIF
(
gnss_utils_INCLUDE_DIRS AND gnss_utils_LIBRARIES
)
IF
(
gnss_utils_FOUND
)
IF
(
NOT gnss_utils_FIND_QUIETLY
)
MESSAGE
(
STATUS
"Found gnss_utils:
${
gnss_utils_LIBRARIES
}
"
)
ENDIF
(
NOT gnss_utils_FIND_QUIETLY
)
ELSE
(
gnss_utils_FOUND
)
IF
(
gnss_utils_FIND_REQUIRED
)
MESSAGE
(
FATAL_ERROR
"Could not find gnss_utils"
)
ENDIF
(
gnss_utils_FIND_REQUIRED
)
ENDIF
(
gnss_utils_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