Modern CMake offers the features to manage versatile and complex projects with ease. With respect to OMNeT++ projects, a workflow relying on CMake enables projects to combine discrete event simulation and production code in a common development environment. Such a combination means less maintenance effort and thus potentially more sustainable and long-living software. This paper highlights the significant improvements since the first attempt of using CMake in OMNeT++ projects. In particular, a state-of-the-art integration of OMNeT++ in Visual Studio Code including support for debugging and multi-platform compilation is presented. Last but not least, an exemplary use case demonstrates the powerful mix of production and simulation code in a common software architecture supported by the OMNeT++ CMake package.
翻译:现代 CMake 提供了简单管理多功能和复杂项目的功能。 关于OMNET+++项目, 依靠 CMake 的工作流程使项目能够在共同开发环境中将离散事件模拟和生产代码结合起来。 这种组合意味着减少维护努力,从而可能更具可持续性和寿命长的软件。 本文强调了自首次尝试在OMNET++项目中使用 CMake以来的重大改进。 特别是, 提出了视觉工作室代码中最先进的OMNET++的整合, 包括支持调试和多平台汇编。 最后但并非最不重要的是, 一个示范性的使用案例展示了由OMNET++ CMake 软件包支持的共同软件结构中生产和模拟代码的强大组合。