Say I have executables A, B, C, and I have external libraries X, Y, Z
SET(EXTERNAL_LIB X Y Z)
TARGET_LINK_LIBRARIES(A, ${EXTERNAL_LIB})
TARGET_LINK_LIBRARIES(B, ${EXTERNAL_LIB})
TARGET_LINK_LIBRARIES(C, ${EXTERNAL_LIB})
However, if I visualize this (using the parameter cmake --graphviz, I get a complex two-sided graph with edges from each of the executable files A, B and C to each of the libraries X, Y and Z.
I was wondering if there is a way to combine all the libraries into one.
source
share