You should be able to specify all the required install part of the lib
target at once:
install(TARGETS lib
LIBRARY
DESTINATION lib
COMPONENT Libraries
PUBLIC_HEADER
DESTINATION include/path
COMPONENT Headers)