Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dynamixel_motor_cont
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
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
dynamixel_motor_cont
Commits
20b6226a
Commit
20b6226a
authored
6 years ago
by
Alejandro Lopez Gestoso
Browse files
Options
Downloads
Patches
Plain Diff
Adapted to CMake plural variables *_DIRS and *_LIBRARIES
parent
500aa925
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_motor_cont.cmake
+7
-7
7 additions, 7 deletions
Finddynamixel_motor_cont.cmake
src/CMakeLists.txt
+2
-2
2 additions, 2 deletions
src/CMakeLists.txt
src/xml/CMakeLists.txt
+4
-1
4 additions, 1 deletion
src/xml/CMakeLists.txt
with
13 additions
and
10 deletions
Finddynamixel_motor_cont.cmake
+
7
−
7
View file @
20b6226a
#edit the following line to add the librarie's header files
FIND_PATH
(
dynamixel_motor_cont_INCLUDE_DIR dynamixel_motor.h dynamixel_motor_group.h dynamixel_registers.h dynamixel_motor_exceptions.h
FIND_PATH
(
dynamixel_motor_cont_INCLUDE_DIR
S
dynamixel_motor.h dynamixel_motor_group.h dynamixel_registers.h dynamixel_motor_exceptions.h
/usr/local/include/iridrivers /usr/local/include/iri/dynamixel_motor_cont /usr/include/iri/dynamixel_motor_cont
)
FIND_LIBRARY
(
dynamixel_motor_cont_LIBRAR
Y
FIND_LIBRARY
(
dynamixel_motor_cont_LIBRAR
IES
NAMES dynamixel_motor_cont
PATHS /usr/local/lib/iridrivers /usr/local/lib/iri/dynamixel_motor_cont /usr/lib/iri/dynamixel_motor_cont
)
SET
(
dynamixel_motor_cont_INCLUDE_DIR
S
${
dynamixel_motor_cont_INCLUDE_DIR
}
)
SET
(
dynamixel_motor_cont_LIBRAR
IES
${
dynamixel_motor_cont_LIBRAR
Y
}
)
SET
(
dynamixel_motor_cont_INCLUDE_DIR
${
dynamixel_motor_cont_INCLUDE_DIR
S
}
)
SET
(
dynamixel_motor_cont_LIBRAR
Y
${
dynamixel_motor_cont_LIBRAR
IES
}
)
IF
(
dynamixel_motor_cont_INCLUDE_DIR AND dynamixel_motor_cont_LIBRAR
Y
)
IF
(
dynamixel_motor_cont_INCLUDE_DIR
S
AND dynamixel_motor_cont_LIBRAR
IES
)
SET
(
dynamixel_motor_cont_FOUND TRUE
)
ENDIF
(
dynamixel_motor_cont_INCLUDE_DIR AND dynamixel_motor_cont_LIBRAR
Y
)
ENDIF
(
dynamixel_motor_cont_INCLUDE_DIR
S
AND dynamixel_motor_cont_LIBRAR
IES
)
IF
(
dynamixel_motor_cont_FOUND
)
IF
(
NOT dynamixel_motor_cont_FIND_QUIETLY
)
MESSAGE
(
STATUS
"Found dynamixel_motor_cont:
${
dynamixel_motor_cont_LIBRAR
Y
}
"
)
MESSAGE
(
STATUS
"Found dynamixel_motor_cont:
${
dynamixel_motor_cont_LIBRAR
IES
}
"
)
ENDIF
(
NOT dynamixel_motor_cont_FIND_QUIETLY
)
ELSE
(
dynamixel_motor_cont_FOUND
)
IF
(
dynamixel_motor_cont_FIND_REQUIRED
)
...
...
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
2
−
2
View file @
20b6226a
...
...
@@ -16,14 +16,14 @@ FIND_PACKAGE(dynamixel REQUIRED)
FIND_PACKAGE
(
trajectory REQUIRED
)
# edit the following line to add the necessary include directories
INCLUDE_DIRECTORIES
(
.
${
iriutils_INCLUDE_DIR
}
${
comm_INCLUDE_DIR
}
${
dynamixel_INCLUDE_DIR
}
${
trajectory_INCLUDE_DIR
}
)
INCLUDE_DIRECTORIES
(
.
${
iriutils_INCLUDE_DIR
S
}
${
comm_INCLUDE_DIR
S
}
${
dynamixel_INCLUDE_DIR
S
}
${
trajectory_INCLUDE_DIR
S
}
)
SET_SOURCE_FILES_PROPERTIES
(
${
XSD_SOURCES
}
PROPERTIES GENERATED 1
)
ADD_LIBRARY
(
dynamixel_motor_cont SHARED
${
sources
}
${
XSD_SOURCES
}
)
#edit the following line to add the necessary system libraries (if any)
TARGET_LINK_LIBRARIES
(
dynamixel_motor_cont
${
iriutils_LIBRAR
Y
}
${
comm_LIBRAR
Y
}
${
dynamixel_LIBRAR
Y
}
${
XSD_LIBRAR
Y
}
${
trajectory_LIBRAR
Y
}
)
TARGET_LINK_LIBRARIES
(
dynamixel_motor_cont
${
iriutils_LIBRAR
IES
}
${
comm_LIBRAR
IES
}
${
dynamixel_LIBRAR
IES
}
${
XSD_LIBRAR
IES
}
${
trajectory_LIBRAR
IES
}
)
ADD_DEPENDENCIES
(
dynamixel_motor_cont xsd_files_gen
)
...
...
This diff is collapsed.
Click to expand it.
src/xml/CMakeLists.txt
+
4
−
1
View file @
20b6226a
...
...
@@ -4,15 +4,18 @@ 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_motor_cfg_file.xsd dynamixel_motor_group_cfg_file.xsd
)
IF
(
XSD_FILES
)
...
...
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