Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dynamixel_pan_tilt
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
dynamixel_pan_tilt
Commits
71c95eca
Commit
71c95eca
authored
6 years ago
by
Alejandro Lopez Gestoso
Browse files
Options
Downloads
Patches
Plain Diff
Adapted to CMake plural variables *_DIRS and *_LIBRARIES
parent
30e879ad
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
Finddynamixel_pan_tilt.cmake
+8
-5
8 additions, 5 deletions
Finddynamixel_pan_tilt.cmake
src/CMakeLists.txt
+2
-2
2 additions, 2 deletions
src/CMakeLists.txt
src/xml/CMakeLists.txt
+4
-2
4 additions, 2 deletions
src/xml/CMakeLists.txt
with
14 additions
and
9 deletions
Finddynamixel_pan_tilt.cmake
+
8
−
5
View file @
71c95eca
#edit the following line to add the librarie's header files
FIND_PATH
(
dynamixel_pan_tilt_INCLUDE_DIR dynamixel_pan_tilt.h dynamixel_pan_tilt_exceptions.h /usr/local/include/iridrivers /usr/local/include/iri/dynamixel_pan_tilt /usr/include/iri/dynamixel_pan_tilt
)
FIND_PATH
(
dynamixel_pan_tilt_INCLUDE_DIR
S
dynamixel_pan_tilt.h dynamixel_pan_tilt_exceptions.h /usr/local/include/iridrivers /usr/local/include/iri/dynamixel_pan_tilt /usr/include/iri/dynamixel_pan_tilt
)
FIND_LIBRARY
(
dynamixel_pan_tilt_LIBRAR
Y
FIND_LIBRARY
(
dynamixel_pan_tilt_LIBRAR
IES
NAMES dynamixel_pan_tilt
PATHS /usr/local/lib/iridrivers /usr/local/lib/iri/dynamixel_pan_tilt /usr/lib/iri/dynamixel_pan_tilt
)
IF
(
dynamixel_pan_tilt_INCLUDE_DIR AND dynamixel_pan_tilt_LIBRARY
)
SET
(
dynamixel_pan_tilt_INCLUDE_DIR
${
dynamixel_pan_tilt_INCLUDE_DIRS
}
)
SET
(
dynamixel_pan_tilt_LIBRARY
${
dynamixel_pan_tilt_LIBRARIES
}
)
IF
(
dynamixel_pan_tilt_INCLUDE_DIRS AND dynamixel_pan_tilt_LIBRARIES
)
SET
(
dynamixel_pan_tilt_FOUND TRUE
)
ENDIF
(
dynamixel_pan_tilt_INCLUDE_DIR AND dynamixel_pan_tilt_LIBRAR
Y
)
ENDIF
(
dynamixel_pan_tilt_INCLUDE_DIR
S
AND dynamixel_pan_tilt_LIBRAR
IES
)
IF
(
dynamixel_pan_tilt_FOUND
)
IF
(
NOT dynamixel_pan_tilt_FIND_QUIETLY
)
MESSAGE
(
STATUS
"Found dynamixel_pan_tilt:
${
dynamixel_pan_tilt_LIBRAR
Y
}
"
)
MESSAGE
(
STATUS
"Found dynamixel_pan_tilt:
${
dynamixel_pan_tilt_LIBRAR
IES
}
"
)
ENDIF
(
NOT dynamixel_pan_tilt_FIND_QUIETLY
)
ELSE
(
dynamixel_pan_tilt_FOUND
)
IF
(
dynamixel_pan_tilt_FIND_REQUIRED
)
...
...
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
2
−
2
View file @
71c95eca
...
...
@@ -17,14 +17,14 @@ FIND_PACKAGE(dynamixel REQUIRED)
FIND_PACKAGE
(
dynamixel_motor_cont REQUIRED
)
# edit the following line to add the necessary include directories
INCLUDE_DIRECTORIES
(
.
${
iriutils_INCLUDE_DIR
}
${
comm_INCLUDE_DIR
}
${
dynamixel_INCLUDE_DIR
}
${
dynamixel_motor_cont_INCLUDE_DIR
}
)
INCLUDE_DIRECTORIES
(
.
${
iriutils_INCLUDE_DIR
S
}
${
comm_INCLUDE_DIR
S
}
${
dynamixel_INCLUDE_DIR
S
}
${
dynamixel_motor_cont_INCLUDE_DIR
S
}
)
SET_SOURCE_FILES_PROPERTIES
(
${
XSD_SOURCES
}
PROPERTIES GENERATED 1
)
ADD_LIBRARY
(
dynamixel_pan_tilt SHARED
${
sources
}
${
XSD_SOURCES
}
)
#edit the following line to add the necessary system libraries (if any)
TARGET_LINK_LIBRARIES
(
dynamixel_pan_tilt
${
iriutils_LIBRAR
Y
}
${
comm_LIBRAR
Y
}
${
dynamixel_LIBRAR
Y
}
${
dynamixel_motor_cont_LIBRAR
Y
}
${
XSD_LIBRAR
Y
}
)
TARGET_LINK_LIBRARIES
(
dynamixel_pan_tilt
${
iriutils_LIBRAR
IES
}
${
comm_LIBRAR
IES
}
${
dynamixel_LIBRAR
IES
}
${
dynamixel_motor_cont_LIBRAR
IES
}
${
XSD_LIBRAR
IES
}
)
ADD_DEPENDENCIES
(
dynamixel_pan_tilt xsd_files_gen
)
...
...
This diff is collapsed.
Click to expand it.
src/xml/CMakeLists.txt
+
4
−
2
View file @
71c95eca
...
...
@@ -4,17 +4,19 @@ IF(EXISTS "/usr/include/xsd/cxx")
SET
(
CMAKE_CXX_FLAGS_RELEASE
"
${
CMAKE_CXX_FLAGS_RELEASE
}
-D_HAVE_XSD"
PARENT_SCOPE
)
SET
(
XSD_FOUND TRUE
)
MESSAGE
(
STATUS
"Found the XML library ... adding support for XML files"
)
FIND_LIBRARY
(
XSD_LIBRAR
Y
FIND_LIBRARY
(
XSD_LIBRAR
IES
NAMES xerces-c
PATHS /usr/lib /usr/local/lib /usr/lib/x86_64-linux-gnu/
)
SET
(
XSD_LIBRARY
${
XSD_LIBRARIES
}
)
ELSE
(
EXISTS
"/usr/include/xsd/cxx"
)
MESSAGE
(
STATUS
"XML library not found ... it will be impossible to handle XML files"
)
ENDIF
(
EXISTS
"/usr/include/xsd/cxx"
)
IF
(
XSD_FOUND
)
SET
(
XSD_LIBRARIES
${
XSD_LIBRARIES
}
PARENT_SCOPE
)
SET
(
XSD_LIBRARY
${
XSD_LIBRARY
}
PARENT_SCOPE
)
SET
(
XSD_FILES dynamixel_pan_tilt_cfg_file.xsd
)
IF
(
XSD_FILES
)
SET
(
XSD_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
)
...
...
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