Giter Club home page Giter Club logo

Comments (2)

SFUMECJF avatar SFUMECJF commented on August 29, 2024

关于这篇内容,确实是大家的痛点,很多人对这部分有疑问。会考虑重制一下这篇文章的。

from cmake-examples-chinese.

Elite-zx avatar Elite-zx commented on August 29, 2024
  • PRIVATE:当一个目标被定义为PRIVATE时,它表示这个目标只应用于该目标自身。也就是说,如果你有一个库A,而你把库B设置为库A的PRIVATE依赖,那么只有库A能使用库B,而不能链接库A的其他目标无法使用库B。
  • INTERFACE:表示只有当其他目标链接到该目标时,才会使用这个目标。用库A和库B的例子来说,如果你把库B设置为库A的INTERFACE依赖,那么只有当其他目标链接库A时,才会使用库B,而库A自身无法使用库B。
  • PUBLIC:表示该目标同时应用于自身和链接到它的其他目标。再用库A和库B的例子,如果你把库B设置为库A的PUBLIC依赖,那么库A和链接库A的其他目标都能使用库B。

from cmake-examples-chinese.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.