Comments (3)
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.
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.
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)
- Make includesize output more useful by outputting the highest scores only
- Create clang-format file & run it in CI system somewhere
- dose this also work for C only? HOT 1
- boost dependency necessary for Linux? HOT 2
- No such file or directory error HOT 2
- Release pre-built binaries for Linux/MacOS/Windows HOT 1
- Error when compiling with VS on Windows - memrchr HOT 5
- Add support for d3.js visualisations HOT 1
- std::bad_alloc (core dumped) on Ubuntu 16.04
- Does it support bazel build system ? HOT 1
- show snap installation instructions on readme? HOT 2
- C++17 std::filesystem instead of boost HOT 4
- Assertion failed in src/Input.cpp:304 HOT 8
- Clarify purpose and status of this repository HOT 1
- Can I use cpp-dependencies to analyse C project? HOT 1
- Cannot scan libwebp due to parenthesis level check HOT 4
- Ubuntu 22.10 permission denied error with cpp-dependencies installed via snap
- assertion failed in ReadCmakelist while running cpp-dependencies on itself
- CMake Error about "Could NOT find Boost (missing: Boost_INCLUDE_DIR filesystem system)"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpp-dependencies.