![]() We'll undergo this whole learning process very methodically before you know it, you will have become a building guru. This is not because CMake is unnecessarily complex but because the subject that we're dealing with here is. It would be supported by multiple Integrated Development Environments ( IDEs) but also by Continuous Integration ( CI) pipelines that test our software after a change is submitted to a shared repository.ĬMake is the answer to many such needs however, it requires a bit of work to configure and use correctly. It would be smart, fast, extensible, and work in the same way across different OSs and environments. Ideally, this process would start with a single button, right after we have changed our code. Instead, we want to stay focused on the actual coding and delegate everything else to automated tooling. It takes great effort to remember each step every single time. To create a proper, high-quality application from our source code, we need to meticulously execute repetitive, error-prone tasks: invoking the correct commands, checking the syntax, linking binary files, running tests, reporting issues, and more. We invent changes, we phrase them in a language that the compiler understands, and we check whether they work as intended. It is not only the effect itself, that is, a working mechanism that we devise and bring to life, but the very process or act of exercising the idea into existence.Īs programmers, we work in the following loop: design, code, and test. There is something magical about turning source code into a working application. Finally, you'll get to grips with exporting, installing, and packaging for internal and external purposes.īy the end of this book, you’ll be able to use CMake confidently on a professional level. ![]() You'll understand how to use external dependencies in your project – third-party libraries, testing frameworks, program analysis tools, and documentation generators. As you progress, you’ll learn how to compile and link executables and libraries, how those processes work, and how to optimize builds in CMake for the best results. ![]() The book also focuses on the structure of source directories, building targets, and packages. You'll not only learn how to use the CMake language in CMake projects, but also discover what makes them maintainable, elegant, and clean. ![]() Modern CMake for C++ is an end-to-end guide to the automatization of complex tasks, including building, testing, and packaging. This book offers a simpler, more comprehensive, experience as it treats the subject of building C++ solutions holistically. At the same time, most online resources offer limited explanation, while also lacking the proper context and structure. Developers researching the subject have difficulty determining which advice is up to date and which approaches have already been replaced by easier, better practices. Creating top-notch software is an extremely difficult undertaking. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |