[CMake] Having trouble with component packaging

Trevor Clarke retrev at csh.rit.edu
Fri Dec 7 10:46:05 EST 2012


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)
set(CPACK_COMPONENTS_ALL SDK DebugSDK ReleaseSDK)
include(CPack)

-- 
Trevor R.H. Clarke
Computer Science House
Rochester Institute of Technology
retrev at csh.rit.edu
http://www.csh.rit.edu/~retrev/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121207/ff0af062/attachment.htm>


More information about the CMake mailing list