-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CMake script to add clang-uml as CMake target #46
Comments
I could possibly help with this issue. How do you envision it working? Would the script provide a macro/function that users could then call on a particular CMake target? Something like: target_generate_uml(<TargetName> ...) Or is the idea to be able to just invoke |
@DeveloperPaul123 As far as I remember it was intended more to be the latter, i.e. there would be a simple CMake module called for instance It would contain something like: # Targets to invoke clang-uml
# Get all project files
file(GLOB_RECURSE ALL_SOURCE_FILES *.cpp *.hpp)
add_custom_target(
clang-uml
COMMAND /usr/bin/clang-uml
<HERE MAYBE SOME MORE OPTIONS>
) and then if in your projects CMakeLists.txt you've included it: include(clang-uml.cmake) it would allow you to simply run it using: make clang-uml However at the moment I'm not sure how to enable options to such Makefile targets so that it would make it useful, but if you have some ideas especially on how you would see it in your actual workflows please let me know... |
@bkryza I see, that's definitely pretty simple to do. I still have yet to use the tool, but can you have Otherwise, we would need more fine grain control. Basically we would delegate responsibility of keeping our UML diagrams up to date to Hopefully that makes sense... |
Create installable cmake script allowing users to directly invoke clang-uml with required options from CMake.
The text was updated successfully, but these errors were encountered: