Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
usb_i2c_adapter
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
usb_i2c_adapter
Commits
77714e4d
Commit
77714e4d
authored
6 years ago
by
Alejandro Lopez Gestoso
Browse files
Options
Downloads
Patches
Plain Diff
Adapted to CMake plural variables *_DIRS and *_LIBRARIES
parent
409fe268
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
Findusb_i2c_adapter.cmake
+7
-7
7 additions, 7 deletions
Findusb_i2c_adapter.cmake
src/CMakeLists.txt
+2
-2
2 additions, 2 deletions
src/CMakeLists.txt
with
9 additions
and
9 deletions
Findusb_i2c_adapter.cmake
+
7
−
7
View file @
77714e4d
#edit the following line to add the librarie's header files
FIND_PATH
(
usb_i2c_adapter_INCLUDE_DIR usb_i2c.h usb_i2c_exceptions.h /usr/local/include/iri/usb_i2c_adapter /usr/include/iri/usb_i2c_adapter
)
FIND_PATH
(
usb_i2c_adapter_INCLUDE_DIR
S
usb_i2c.h usb_i2c_exceptions.h /usr/local/include/iri/usb_i2c_adapter /usr/include/iri/usb_i2c_adapter
)
FIND_LIBRARY
(
usb_i2c_adapter_LIBRAR
Y
FIND_LIBRARY
(
usb_i2c_adapter_LIBRAR
IES
NAMES usb_i2c_adapter
PATHS /usr/local/lib/iri/usb_i2c_adapter /usr/lib/iri/usb_i2c_adapter
)
SET
(
usb_i2c_adapter_INCLUDE_DIR
S
${
usb_i2c_adapter_INCLUDE_DIR
}
)
SET
(
usb_i2c_adapter_LIBRAR
IES
${
usb_i2c_adapter_LIBRAR
Y
}
)
SET
(
usb_i2c_adapter_INCLUDE_DIR
${
usb_i2c_adapter_INCLUDE_DIR
S
}
)
SET
(
usb_i2c_adapter_LIBRAR
Y
${
usb_i2c_adapter_LIBRAR
IES
}
)
IF
(
usb_i2c_adapter_INCLUDE_DIR AND usb_i2c_adapter_LIBRAR
Y
)
IF
(
usb_i2c_adapter_INCLUDE_DIR
S
AND usb_i2c_adapter_LIBRAR
IES
)
SET
(
usb_i2c_adapter_FOUND TRUE
)
ENDIF
(
usb_i2c_adapter_INCLUDE_DIR AND usb_i2c_adapter_LIBRAR
Y
)
ENDIF
(
usb_i2c_adapter_INCLUDE_DIR
S
AND usb_i2c_adapter_LIBRAR
IES
)
IF
(
usb_i2c_adapter_FOUND
)
IF
(
NOT usb_i2c_adapter_FIND_QUIETLY
)
MESSAGE
(
STATUS
"Found usb_i2c_adapter:
${
usb_i2c_adapter_LIBRAR
Y
}
"
)
MESSAGE
(
STATUS
"Found usb_i2c_adapter:
${
usb_i2c_adapter_LIBRAR
IES
}
"
)
ENDIF
(
NOT usb_i2c_adapter_FIND_QUIETLY
)
ELSE
(
usb_i2c_adapter_FOUND
)
IF
(
usb_i2c_adapter_FIND_REQUIRED
)
...
...
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
2
−
2
View file @
77714e4d
...
...
@@ -8,12 +8,12 @@ FIND_PACKAGE(iriutils REQUIRED)
FIND_PACKAGE
(
comm REQUIRED
)
# edit the following line to add the necessary include directories
INCLUDE_DIRECTORIES
(
../include/
${
iriutils_INCLUDE_DIR
}
${
comm_INCLUDE_DIR
}
)
INCLUDE_DIRECTORIES
(
../include/
${
iriutils_INCLUDE_DIR
S
}
${
comm_INCLUDE_DIR
S
}
)
ADD_LIBRARY
(
usb_i2c_adapter SHARED
${
sources
}
)
#edit the following line to add the necessary system libraries (if any)
TARGET_LINK_LIBRARIES
(
usb_i2c_adapter
${
iriutils_LIBRAR
Y
}
${
comm_LIBRAR
Y
}
)
TARGET_LINK_LIBRARIES
(
usb_i2c_adapter
${
iriutils_LIBRAR
IES
}
${
comm_LIBRAR
IES
}
)
INSTALL
(
TARGETS usb_i2c_adapter
RUNTIME DESTINATION bin
...
...
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