[CMake] cpack components
Clinton Stimpson
clinton at elemtech.com
Mon Jan 11 16:24:03 EST 2010
I have a project with install commands like so:
INSTALL(TARGETS foo
RUNTIME DESTINATION bin COMPONENT Runtime
LIBRARY DESTINATION bin COMPONENT Runtime
ARCHIVE DESTINATION bin COMPONENT Development)
INSTALL(FILES ${foo_HDRS}
DESTINATION include COMPONENT Development)
And I want to create a .tgz or .zip file with a subset of the available
components (in my case, Runtime and Help). I've set CPACK_COMPONENTS_ALL to a
list of components I want before the include(CPack), but it is being ignored.
With generators that support components, I can list a subset of components to
install. But it seems with non-component based cpack generators I can't list
a subset of components.
Any way to get what I want? I looked at the CPACK_INSTALL_CMAKE_PROJECTS
variable, but its a list of 4 items, and I don't see how I can fit in a list in
the 3rd position of that list.
Thanks,
Clint
More information about the CMake
mailing list