link library to all targets in cmake project

后端 未结 2 1071
夕颜
夕颜 2021-01-19 21:51

Let me describe what I think is a sufficiently common use case, that it should be supported. Consider a project which consists of a library and a set of executable that use

2条回答
  •  孤街浪徒
    2021-01-19 22:38

    As mentioned at https://stackoverflow.com/a/50295894/129550 the requested link_libraries(example example2) function is actually now a part of cmake.

提交回复
热议问题