Ha! I just found the solution. Apparently, you need to repeat the
"COMPONENT" in the install command for each destination, like so:
install(
TARGETS gdcp
LIBRARY DESTINATION lib COMPONENT gdcp_lib
RUNTIME DESTINATION bin COMPONENT gdcp_lib
)
This is also mentioned in the CMake documentation, I misread the
brackets there.
On 10/17/2012 03:46 PM, Eric Noulard wrote:
To which component do they belong to?
Didn't matter, adding them to either the lib or the executable component
works.
Could you try (in the DEB case) to:
set(CPACK_DEB_COMPONENT_INSTALL 1)
set(CPACK_COMPONENTS_GROUPING ALL_COMPONENTS_IN_ONE)
Nope, didn't help.
By the way do you set a value for CPACK_COMPONENTS_ALL
or do you leave it unset?
I didn't set it anywhere. And with the above solution, CPack seems to
find everything fine without setting it. But thanks for your suggestions!
Kind regards,
Ben
--
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