Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LidarLite
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
LidarLite
Commits
e0b1c79d
Commit
e0b1c79d
authored
5 years ago
by
Alejandro Lopez Gestoso
Browse files
Options
Downloads
Patches
Plain Diff
Adapted to CMake plural variables *_DIRS and *_LIBRARIES
parent
b8f746db
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
Findlidar_lite.cmake
+7
-7
7 additions, 7 deletions
Findlidar_lite.cmake
src/CMakeLists.txt
+5
-5
5 additions, 5 deletions
src/CMakeLists.txt
with
12 additions
and
12 deletions
Findlidar_lite.cmake
+
7
−
7
View file @
e0b1c79d
#edit the following line to add the librarie's header files
FIND_PATH
(
lidar_lite_INCLUDE_DIR lidar_lite.h exceptions.h lidar_lite_exceptions.h /usr/local/include/iri/lidar_lite /usr/include/iri/lidar_lite
)
FIND_PATH
(
lidar_lite_INCLUDE_DIR
S
lidar_lite.h exceptions.h lidar_lite_exceptions.h /usr/local/include/iri/lidar_lite /usr/include/iri/lidar_lite
)
FIND_LIBRARY
(
lidar_lite_LIBRAR
Y
FIND_LIBRARY
(
lidar_lite_LIBRAR
IES
NAMES lidar_lite
PATHS /usr/local/lib/iri/lidar_lite /usr/lib/iri/lidar_lite
)
SET
(
lidar_lite_INCLUDE_DIR
S
${
lidar_lite_INCLUDE_DIR
}
)
SET
(
lidar_lite_LIBRAR
IES
${
lidar_lite_LIBRAR
Y
}
)
SET
(
lidar_lite_INCLUDE_DIR
${
lidar_lite_INCLUDE_DIR
S
}
)
SET
(
lidar_lite_LIBRAR
Y
${
lidar_lite_LIBRAR
IES
}
)
IF
(
lidar_lite_INCLUDE_DIR AND lidar_lite_LIBRAR
Y
)
IF
(
lidar_lite_INCLUDE_DIR
S
AND lidar_lite_LIBRAR
IES
)
SET
(
lidar_lite_FOUND TRUE
)
ENDIF
(
lidar_lite_INCLUDE_DIR AND lidar_lite_LIBRAR
Y
)
ENDIF
(
lidar_lite_INCLUDE_DIR
S
AND lidar_lite_LIBRAR
IES
)
IF
(
lidar_lite_FOUND
)
IF
(
NOT lidar_lite_FIND_QUIETLY
)
MESSAGE
(
STATUS
"Found lidar_lite:
${
lidar_lite_LIBRAR
Y
}
"
)
MESSAGE
(
STATUS
"Found lidar_lite:
${
lidar_lite_LIBRAR
IES
}
"
)
ENDIF
(
NOT lidar_lite_FIND_QUIETLY
)
ELSE
(
lidar_lite_FOUND
)
IF
(
lidar_lite_FIND_REQUIRED
)
...
...
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
5
−
5
View file @
e0b1c79d
...
...
@@ -12,18 +12,18 @@ FIND_PACKAGE(iriutils REQUIRED)
# add the necessary include directories
INCLUDE_DIRECTORIES
(
../include/
)
INCLUDE_DIRECTORIES
(
../include/exceptions
)
INCLUDE_DIRECTORIES
(
${
usb_i2c_adapter_INCLUDE_DIR
}
)
INCLUDE_DIRECTORIES
(
${
usb_i2c_adapter_INCLUDE_DIR
S
}
)
INCLUDE_DIRECTORIES
(
${
comm_INCLUDE_DIRS
}
)
INCLUDE_DIRECTORIES
(
${
iriutils_INCLUDE_DIR
}
)
INCLUDE_DIRECTORIES
(
${
iriutils_INCLUDE_DIR
S
}
)
# create the shared library
ADD_LIBRARY
(
lidar_lite SHARED
${
sources
}
)
# link necessary libraries
TARGET_LINK_LIBRARIES
(
lidar_lite
${
usb_i2c_adapter_LIBRAR
Y
}
)
TARGET_LINK_LIBRARIES
(
lidar_lite
${
comm_LIBRAR
Y
}
)
TARGET_LINK_LIBRARIES
(
lidar_lite
${
iriutils_LIBRAR
Y
}
)
TARGET_LINK_LIBRARIES
(
lidar_lite
${
usb_i2c_adapter_LIBRAR
IES
}
)
TARGET_LINK_LIBRARIES
(
lidar_lite
${
comm_LIBRAR
IES
}
)
TARGET_LINK_LIBRARIES
(
lidar_lite
${
iriutils_LIBRAR
IES
}
)
# Check G++ compiler version
include
(
CheckCXXCompilerFlag
)
...
...
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