Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
labrobotica
drivers
segway_rmp_400
Commits
61dc70d7
Commit
61dc70d7
authored
Sep 19, 2019
by
Fernando Herrero
Browse files
Add gitignore, gitlab ci file, moved headers to include folder
parent
d03b3aa4
Changes
4
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
61dc70d7
...
...
@@ -86,7 +86,7 @@ IF (UNIX)
# Uncomment to add dependencies comma separated
# SET(CPACK_DEBIAN_PACKAGE_DEPENDS "iri-<package_name>-dev (>= 1.0~${DISTRIB})")
SET
(
CPACK_DEBIAN_PACKAGE_DEPENDS
"iri-iriutils-dev (>= 1.0~
${
DISTRIB
}
), iri-comm-dev (>= 1.0~
${
DISTRIB
}
)"
)
SET
(
CPACK_DEBIAN_PACKAGE_DEPENDS
"iri-iriutils-dev (>= 1.0~
${
DISTRIB
}
), iri-comm-dev (>=
1.0~
${
DISTRIB
}
), iri-segway-rmp-200 (>=
1.0~
${
DISTRIB
}
)"
)
INCLUDE
(
CPack
)
ELSE
(
UNIX
)
...
...
@@ -94,4 +94,4 @@ IF (UNIX)
COMMENT
"packaging only implemented in unix"
TARGET uninstall
)
ENDIF
(
UNIX
)
\ No newline at end of file
ENDIF
(
UNIX
)
src
/segway_RMP400.h
→
include
/segway_RMP400.h
View file @
61dc70d7
File moved
src
/segway_RMP400_exception.h
→
include
/segway_RMP400_exception.h
View file @
61dc70d7
File moved
src/CMakeLists.txt
View file @
61dc70d7
# edit the following line to add all the source code files of the library
SET
(
sources segway_RMP400.cpp segway_RMP400_exception.cpp
)
# edit the following line to add all the header files of the library
SET
(
headers segway_RMP400.h segway_RMP400_exception.h
)
SET
(
headers
../include/
segway_RMP400.h
../include/
segway_RMP400_exception.h
)
# edit the following line to find the necessary packages
FIND_PACKAGE
(
iriutils REQUIRED
)
...
...
@@ -9,25 +9,25 @@ FIND_PACKAGE(comm REQUIRED)
FIND_PACKAGE
(
segway_rmp_200 REQUIRED
)
# edit the following line to add the necessary include directories
INCLUDE_DIRECTORIES
(
.
)
INCLUDE_DIRECTORIES
(
${
iriutils_INCLUDE_DIR
}
)
INCLUDE_DIRECTORIES
(
${
comm_INCLUDE_DIR
}
)
INCLUDE_DIRECTORIES
(
${
segway_rmp_200_INCLUDE_DIR
}
)
INCLUDE_DIRECTORIES
(
.
./include
)
INCLUDE_DIRECTORIES
(
${
iriutils_INCLUDE_DIR
S
}
)
INCLUDE_DIRECTORIES
(
${
comm_INCLUDE_DIR
S
}
)
INCLUDE_DIRECTORIES
(
${
segway_rmp_200_INCLUDE_DIR
S
}
)
ADD_LIBRARY
(
segway_rmp_400 SHARED
${
sources
}
)
#edit the following line to add the necessary system libraries (if any)
TARGET_LINK_LIBRARIES
(
segway_rmp_400
${
iriutils_LIBRAR
Y
}
)
TARGET_LINK_LIBRARIES
(
segway_rmp_400
${
comm_LIBRAR
Y
}
)
TARGET_LINK_LIBRARIES
(
segway_rmp_400
${
segway_rmp_200_LIBRAR
Y
}
)
TARGET_LINK_LIBRARIES
(
segway_rmp_400
${
iriutils_LIBRAR
IES
}
)
TARGET_LINK_LIBRARIES
(
segway_rmp_400
${
comm_LIBRAR
IES
}
)
TARGET_LINK_LIBRARIES
(
segway_rmp_400
${
segway_rmp_200_LIBRAR
IES
}
)
INSTALL
(
TARGETS segway_rmp_400
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib/iri
drivers
ARCHIVE DESTINATION lib/iri
drivers
LIBRARY DESTINATION lib/iri
/
${
PROJECT_NAME
}
ARCHIVE DESTINATION lib/iri
/
${
PROJECT_NAME
}
)
INSTALL
(
FILES
${
headers
}
DESTINATION include/iri
drivers
)
INSTALL
(
FILES
${
headers
}
DESTINATION include/iri
/
${
PROJECT_NAME
}
)
INSTALL
(
FILES ../Findsegway_rmp_400.cmake DESTINATION
${
CMAKE_ROOT
}
/Modules/
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment