So, we have a CMakeList.txt which have around 74 projects in it, And for one project we use install component to install that library, but when ran the custom_target to run the command:
TW_ADD_CUSTOM_TARGET(install_${pTargetName}
COMMAND ${CMAKE_COMMAND} --install ${CMAKE_BINARY_DIR} --component ${pTargetName}
COMMENT “Installing ${pTargetName} only”
)
but when ran this custom command, it builds entire cmakelists.txt and then it installs the desired target.
So the question is:
- Is this the correct way of using this install component?
- And if yes, then tell where are we missing something?
Regards,
Akshat Jain