Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
asterx1_gps
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
asterx1_gps
Commits
0881b574
Commit
0881b574
authored
5 years ago
by
Alejandro Lopez Gestoso
Browse files
Options
Downloads
Patches
Plain Diff
Adapted to CMake plural variables *_DIRS and *_LIBRARIES
parent
b4b9415b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Findasterx1_gps.cmake
+7
-4
7 additions, 4 deletions
Findasterx1_gps.cmake
Findasterx1_process.cmake
+7
-4
7 additions, 4 deletions
Findasterx1_process.cmake
src/CMakeLists.txt
+6
-6
6 additions, 6 deletions
src/CMakeLists.txt
with
20 additions
and
14 deletions
Findasterx1_gps.cmake
+
7
−
4
View file @
0881b574
#edit the following line to add the librarie's header files
FIND_PATH
(
asterx1_gps_INCLUDE_DIR asterx1_gps.h asterx1exceptions.h stream_gps.h gps_types.h /usr/local/include/iri/asterx1_gps /usr/include/iri/asterx1_gps
)
FIND_LIBRARY
(
asterx1_gps_LIBRAR
Y
FIND_LIBRARY
(
asterx1_gps_LIBRAR
IES
NAMES asterx1_gps
PATHS /usr/local/lib/iri/asterx1_gps /usr/lib/iri/asterx1_gps
)
IF
(
asterx1_gps_INCLUDE_DIR AND asterx1_gps_LIBRAR
Y
)
IF
(
asterx1_gps_INCLUDE_DIR
S
AND asterx1_gps_LIBRAR
IES
)
SET
(
asterx1_gps_FOUND TRUE
)
ENDIF
(
asterx1_gps_INCLUDE_DIR AND asterx1_gps_LIBRARY
)
ENDIF
(
asterx1_gps_INCLUDE_DIRS AND asterx1_gps_LIBRARIES
)
SET
(
asterx1_gps_INCLUDE_DIR
${
asterx1_gps_INCLUDE_DIRS
}
)
SET
(
asterx1_gps_LIBRARY
${
asterx1_gps_LIBRARIES
}
)
IF
(
asterx1_gps_FOUND
)
IF
(
NOT asterx1_gps_FIND_QUIETLY
)
MESSAGE
(
STATUS
"Found asterx1_gps:
${
asterx1_gps_LIBRAR
Y
}
"
)
MESSAGE
(
STATUS
"Found asterx1_gps:
${
asterx1_gps_LIBRAR
IES
}
"
)
ENDIF
(
NOT asterx1_gps_FIND_QUIETLY
)
ELSE
(
asterx1_gps_FOUND
)
IF
(
asterx1_gps_FIND_REQUIRED
)
...
...
This diff is collapsed.
Click to expand it.
Findasterx1_process.cmake
+
7
−
4
View file @
0881b574
#edit the following line to add the librarie's header files
FIND_PATH
(
asterx1_process_INCLUDE_DIR asterx1_process.h gps_types.h /usr/local/include/iri/asterx1_gps /usr/include/iri/asterx1_gps
)
FIND_LIBRARY
(
asterx1_process_LIBRAR
Y
FIND_LIBRARY
(
asterx1_process_LIBRAR
IES
NAMES asterx1_process
PATHS /usr/local/lib/iri/asterx1_gps /usr/lib/iri/asterx1_gps
)
IF
(
asterx1_process_INCLUDE_DIR AND asterx1_process_LIBRAR
Y
)
IF
(
asterx1_process_INCLUDE_DIR
S
AND asterx1_process_LIBRAR
IES
)
SET
(
asterx1_process_FOUND TRUE
)
ENDIF
(
asterx1_process_INCLUDE_DIR AND asterx1_process_LIBRARY
)
ENDIF
(
asterx1_process_INCLUDE_DIRS AND asterx1_process_LIBRARIES
)
SET
(
asterx1_process_INCLUDE_DIR
${
asterx1_process_INCLUDE_DIRS
}
)
SET
(
asterx1_process_LIBRARY
${
asterx1_process_LIBRARIES
}
)
IF
(
asterx1_process_FOUND
)
IF
(
NOT asterx1_process_FIND_QUIETLY
)
MESSAGE
(
STATUS
"Found asterx1_process:
${
asterx1_process_LIBRAR
Y
}
"
)
MESSAGE
(
STATUS
"Found asterx1_process:
${
asterx1_process_LIBRAR
IES
}
"
)
ENDIF
(
NOT asterx1_process_FIND_QUIETLY
)
ELSE
(
asterx1_process_FOUND
)
IF
(
asterx1_process_FIND_REQUIRED
)
...
...
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
6
−
6
View file @
0881b574
...
...
@@ -16,15 +16,15 @@ FIND_PACKAGE(comm)
# 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
(
asterx1_gps SHARED
${
sources
}
)
# link necessary libraries
TARGET_LINK_LIBRARIES
(
asterx1_gps
${
iriutils_LIBRAR
Y
}
)
TARGET_LINK_LIBRARIES
(
asterx1_gps
${
comm_LIBRAR
Y
}
)
TARGET_LINK_LIBRARIES
(
asterx1_gps
${
iriutils_LIBRAR
IES
}
)
TARGET_LINK_LIBRARIES
(
asterx1_gps
${
comm_LIBRAR
IES
}
)
INSTALL
(
TARGETS asterx1_gps
RUNTIME DESTINATION bin
...
...
@@ -43,8 +43,8 @@ IF(gpstk_LIBRARY)
# create the shared library
ADD_LIBRARY
(
asterx1_process SHARED
${
process_sources
}
)
TARGET_LINK_LIBRARIES
(
asterx1_process
${
iriutils_LIBRAR
Y
}
)
TARGET_LINK_LIBRARIES
(
asterx1_process
${
comm_LIBRAR
Y
}
)
TARGET_LINK_LIBRARIES
(
asterx1_process
${
iriutils_LIBRAR
IES
}
)
TARGET_LINK_LIBRARIES
(
asterx1_process
${
comm_LIBRAR
IES
}
)
TARGET_LINK_LIBRARIES
(
asterx1_process gpstk
)
INSTALL
(
TARGETS asterx1_process
...
...
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