Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
trajectory
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
algorithms
trajectory
Commits
0efa517b
Commit
0efa517b
authored
6 years ago
by
Alejandro Lopez Gestoso
Browse files
Options
Downloads
Patches
Plain Diff
Modified to set and use the trajectory_INCLUDE_DIRS and trajectory_LIBRARIES
parent
7c2129fc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Findtrajectory.cmake
+8
-8
8 additions, 8 deletions
Findtrajectory.cmake
src/CMakeLists.txt
+3
-3
3 additions, 3 deletions
src/CMakeLists.txt
src/xml/CMakeLists.txt
+3
-2
3 additions, 2 deletions
src/xml/CMakeLists.txt
with
14 additions
and
13 deletions
Findtrajectory.cmake
+
8
−
8
View file @
0efa517b
#edit the following line to add the librarie's header files
FIND_PATH
(
trajectory_INCLUDE_DIR trajectory.h trajectory_exceptions.h /usr/include/iri/trajectory /usr/
local/
include/iri/trajectory
)
FIND_PATH
(
trajectory_INCLUDE_DIR
S
trajectory.h trajectory_exceptions.h /usr/
local/include/iridrivers /usr/local/
include/iri/trajectory /usr/include/iri/trajectory
)
FIND_LIBRARY
(
trajectory_LIBRAR
Y
FIND_LIBRARY
(
trajectory_LIBRAR
IES
NAMES trajectory
PATHS /usr/l
ib /usr
/lib/iri
/trajectory
/usr/local/lib
/usr/local
/lib/iri/trajectory
)
PATHS /usr/l
ocal
/lib/iri
drivers
/usr/local/lib
/iri/trajectory /usr
/lib/iri/trajectory
)
SET
(
trajectory_INCLUDE_DIR
S
${
trajectory_INCLUDE_DIR
}
)
SET
(
trajectory_LIBRAR
IES
${
trajectory_LIBRAR
Y
}
)
SET
(
trajectory_INCLUDE_DIR
${
trajectory_INCLUDE_DIR
S
}
)
SET
(
trajectory_LIBRAR
Y
${
trajectory_LIBRAR
IES
}
)
IF
(
trajectory_INCLUDE_DIR AND trajectory_LIBRAR
Y
)
IF
(
trajectory_INCLUDE_DIR
S
AND trajectory_LIBRAR
IES
)
SET
(
trajectory_FOUND TRUE
)
ENDIF
(
trajectory_INCLUDE_DIR AND trajectory_LIBRAR
Y
)
ENDIF
(
trajectory_INCLUDE_DIR
S
AND trajectory_LIBRAR
IES
)
IF
(
trajectory_FOUND
)
IF
(
NOT trajectory_FIND_QUIETLY
)
MESSAGE
(
STATUS
"Found trajectory:
${
trajectory_LIBRAR
Y
}
"
)
MESSAGE
(
STATUS
"Found trajectory:
${
trajectory_LIBRAR
IES
}
"
)
ENDIF
(
NOT trajectory_FIND_QUIETLY
)
ELSE
(
trajectory_FOUND
)
IF
(
trajectory_FIND_REQUIRED
)
...
...
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
3
−
3
View file @
0efa517b
...
...
@@ -8,7 +8,7 @@ SET(headers ../include/trajectory.h ../include/trajectory_exceptions.h)
FIND_PACKAGE
(
iriutils REQUIRED
)
# add the necessary include directories
INCLUDE_DIRECTORIES
(
. ../include/
)
INCLUDE_DIRECTORIES
(
${
iriutils_INCLUDE_DIR
}
)
INCLUDE_DIRECTORIES
(
${
iriutils_INCLUDE_DIR
S
}
)
SET_SOURCE_FILES_PROPERTIES
(
${
XSD_SOURCES
}
PROPERTIES GENERATED 1
)
...
...
@@ -16,8 +16,8 @@ SET_SOURCE_FILES_PROPERTIES(${XSD_SOURCES} PROPERTIES GENERATED 1)
ADD_LIBRARY
(
trajectory SHARED
${
sources
}
${
XSD_SOURCES
}
)
# link necessary libraries
TARGET_LINK_LIBRARIES
(
trajectory
${
XSD_LIBRAR
Y
}
)
TARGET_LINK_LIBRARIES
(
trajectory
${
iriutils_LIBRAR
Y
}
)
TARGET_LINK_LIBRARIES
(
trajectory
${
XSD_LIBRAR
IES
}
)
TARGET_LINK_LIBRARIES
(
trajectory
${
iriutils_LIBRAR
IES
}
)
ADD_DEPENDENCIES
(
trajectory xsd_files_gen
)
...
...
This diff is collapsed.
Click to expand it.
src/xml/CMakeLists.txt
+
3
−
2
View file @
0efa517b
...
...
@@ -4,15 +4,16 @@ 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_LIBRAR
Y
${
XSD_LIBRAR
Y
}
PARENT_SCOPE
)
SET
(
XSD_LIBRAR
IES
${
XSD_LIBRAR
IES
}
PARENT_SCOPE
)
SET
(
XSD_FILES motion_traj_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