2012/12/7 Trevor Clarke ret...@csh.rit.edu:
cmake/cpack 2.8.8 on redhat6
I'm trying to generate multiple tar.bz2 files for diffeent componenents and
I'm having some problems...running make package yields a single tarball
with all files. Relevant parts of CMakeLists.txt are below. Also tried
setting CMAKE_MONOLITHIC_INSTALL 0 to no effect.
# sample install commands
install(TARGETS MainExe RUNTIME DESTINATION bin CONFIGURATIONS Debug
COMPONENT DebugSDK)
install(TARGETS MainExe RUNTIME DESTINATION bin CONFIGURATIONS
Release;RelWithDebInfo;MinSizeRel COMPONENT ReleaseSDK)
install(DIRECTORY ${App_SOURCE_DIR}/../Release/DefaultSettings DESTINATION .
COMPONENT SDK)
#...
# cpack config
set(CPACK_GENERATOR TBZ2)
set(CPACK_TBZ2_COMPONENT_INSTALL ON)
This one does not work,
TBZ2 belongs to ARCHIVE generator family (ZIP, TZ, TGZ, TBZ2)
thus you should use:
set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)
if you want to have component packaging for TBZ2 and monolithic for ZIP
you'll have to use a CPACK_PROJECT_CONFIG_FILE in order
to set CPACK_ARCHIVE_COMPONENT_INSTALL at CPack-time depending
on the active CPack generator.
set(CPACK_COMPONENTS_ALL SDK DebugSDK ReleaseSDK)
include(CPack)
--
Trevor R.H. Clarke
Computer Science House
Rochester Institute of Technology
ret...@csh.rit.edu
http://www.csh.rit.edu/~retrev/
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
--
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake