![]() ![]() Build files have been written to: /public/Projects/build-eu-terminal-apps-Desktop_Qt_6_2_0_GCC_64bit-Debug Generate graphviz: /public/Projects/deps-eu-terminal-apps/eu-terminal-1.dot build-eu-terminal-apps-Desktop_Qt_6_2_0_GCC_64bit-Debug/ -graphviz=eu-terminal-1.dot My CMake command and results look as follows: $ cmake -S. In QtCreator, we run the action Build > Run CMake, copy the CMake command to a Linux terminal, add the option -graphviz=eu-terminal-1.dot, and run the command. This post is based on commit 1f2a678 but you should be able to work along with older and newer versions. We clone the example project eu-terminal-apps into a directory of our choice and create a sibling directory for the generated dependency graphs. #Cmake target how toThe documentation page CMakeGraphVizOptions describes how to generate and visualise dependency graphs. Although the project is pretty simple, the graph needs some pruning to reflect the relevant parts of the architecture. ![]() The project depends on several external libraries like Qt and OpenGL. The project comprises the executable MainApp, the test executables, the shared libraries BusinessLogicModels and Machine, and the QML module EmUse.Models. My running example is the walking skeleton of the harvester terminal, which I introduced in my talk Hexagonal Architecture: The Standard for Qt Embedded Applications at Meeting Embedded 2021. The graphs help us get an idea of the software architecture and identify the dependency hot spots. CMake uses Graphviz to generate dependency graphs between the targets of a CMake project like libraries and executables. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |