当前位置:网站首页>Detailed explanation of private, public and interface attributes in cmake

Detailed explanation of private, public and interface attributes in cmake

2022-06-12 08:26:00 Ordinary people who like playing basketball

1.

2.private pubic interface Scope details of

  • PRIVATE - The directory is added to the target ( library ) In the included path of .
  • INTERFACE - The directory was not added to the target ( library ) In the included path of , It links to other targets of the library ( Library or executable program ) Included in path
  • PUBLIC - The directory is added to the target ( library ) In the included path of , Also added to other targets linked to this library ( Library or executable program ) In the included path of

in other words , Depending on whether the library contains this path , And whether other targets that call the library contain this path , It can be divided into three types scope

原网站

版权声明
本文为[Ordinary people who like playing basketball]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/163/202206120801093712.html