Code Monkey home page Code Monkey logo

Comments (3)

dascandy avatar dascandy commented on July 18, 2024

The tool does not actually read the cmakefile at all; it uses its presence to mark a folder as a component, and scans it to see whether it's a library or an executable (defaulting to a library if it doesn't find it). The rest of the cmakefiles are completely ignored.

You can try adding empty files called "CMakeLists.txt" in the folders of other components to make it see a component there, or using the "--infer" flag to make it think of each folder with some sources as a component.

One alternative could be to actually read cmakelists, but that would make the tool much more complicated, tie it into CMake for its function, and would probably be fairly fragile by itself.

from cpp-dependencies.

pizzard avatar pizzard commented on July 18, 2024

That should be added to the documentation, this requires you to have the definition as library or executable inside the cmake file directly and not hidden between further includes. Furthermore it requires you to never defines multiple targets in a CmakeLists.txt. Doesn't sound problematic once I know, would just be nice to add documentation about the expected project layout.

from cpp-dependencies.

dascandy avatar dascandy commented on July 18, 2024

Changed the description to updating the documentation; for some reason many people think it actually reads the CMakeLists. To be completed together with adding support for other "build-style files" that demarcate components.

from cpp-dependencies.

Related Issues (20)

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.