Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
labrobotica
drivers
dynamixel_motor_cont
Commits
c6b618db
Commit
c6b618db
authored
May 29, 2019
by
Alejandro Lopez Gestoso
Browse files
Adapted to .deb package generation
parent
20b6226a
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
c6b618db
...
...
@@ -9,6 +9,7 @@ endif(COMMAND cmake_policy)
# The project name and the type of project
PROJECT
(
dynamixel_motor_cont
)
SET
(
PACKAGE_NAME dynamixel-motor-cont
)
SET
(
EXECUTABLE_OUTPUT_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/bin
)
SET
(
LIBRARY_OUTPUT_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/lib
)
...
...
@@ -66,14 +67,20 @@ ELSE(UNIX)
ENDIF
(
UNIX
)
IF
(
UNIX
)
SET
(
CPACK_PACKAGE_FILE_NAME
"iri-
${
P
ROJECT
_NAME
}
-dev-
${
CPACK_PACKAGE_VERSION
}${
CPACK_DEBIAN_PACKAGE_ARCHITECTURE
}
"
)
SET
(
CPACK_PACKAGE_NAME
"iri-
${
P
ROJECT
_NAME
}
-dev"
)
SET
(
CPACK_PACKAGE_DESCRIPTION_SUMMARY
"Part of IRI-laboratory libraries. More information at http://wikiri.upc.e
s
/index.php/Robotic
s_Lab
"
)
SET
(
CPACK_PACKAGING_INSTALL_PREFIX
${
CMAKE_INSTALL_PREFIX
}
)
SET
(
CPACK_PACKAGE_FILE_NAME
"iri-
${
P
ACKAGE
_NAME
}
-dev-
${
CPACK_PACKAGE_VERSION
}
-
${
CPACK_DEBIAN_PACKAGE_ARCHITECTURE
}
"
)
SET
(
CPACK_PACKAGE_NAME
"iri-
${
P
ACKAGE
_NAME
}
-dev"
)
SET
(
CPACK_PACKAGE_DESCRIPTION_SUMMARY
"Part of IRI-laboratory libraries. More information at http://wiki
.i
ri.upc.e
du
/index.php/
Lab
Robotic
a
"
)
SET
(
CPACK_PACKAGING_INSTALL_PREFIX
/usr
)
SET
(
CPACK_GENERATOR
"DEB"
)
SET
(
CPACK_DEBIAN_PACKAGE_MAINTAINER
"labrobotica@iri.upc.edu"
)
SET
(
CPACK_SET_DESTDIR
"ON"
)
# Necessary because of the absolute install paths
SET
(
CPACK_DEBIAN_PACKAGE_DEPENDS
"iri-dynamixel-dev (>= 1.2~
${
DISTRIB
}
), iri_motor_control_dev (>= 1.0.4~
${
DISTRIB
}
) "
)
SET
(
CPACK_DEBIAN_PACKAGE_MAINTAINER
"labrobotica - labrobotica@iri.upc.edu"
)
# Uncomment to add the necessary mantainer scripts
# SET(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_SOURCE_DIR}/package_scripts/preinst;${CMAKE_SOURCE_DIR}/package_scripts/postinst;${CMAKE_SOURCE_DIR}/package_scripts/prerm;${CMAKE_SOURCE_DIR}/package_scripts/postrm")
# 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
}
), libxerces-c-dev (>= 1.0~
${
DISTRIB
}
), xsdcxx (>= 1.0~
${
DISTRIB
}
), iri-trajectory-dev (>= 1.0~
${
DISTRIB
}
), iri-dynamixel-dev (>= 1.0~
${
DISTRIB
}
)"
)
INCLUDE
(
CPack
)
ELSE
(
UNIX
)
ADD_CUSTOM_COMMAND
(
...
...
@@ -82,3 +89,4 @@ ELSE(UNIX)
)
ENDIF
(
UNIX
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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