B
B
BelBES2018-02-21 15:12:35
CMake
BelBES, 2018-02-21 15:12:35

How to add dependencies to a package?

The following question arose:
within the cmake project, I build a library that has dependencies on some dynamic libraries:
add_library(lib )
target_link_libraries(lib )
Then I add the library to the package:
install(TARGETS lib EXPORT DESTINATION lib COMPONENT project)
But besides this, I want also add all external dynamic libraries to the same package. Can anyone suggest how exactly to do this? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question