![]() It can do much more than that too (e.g., build MS Visual Studio solutions), but in this discussion I focus on the auto-generation of Makefiles for C/C++ projects. ![]() The make utility and Makefiles provide a build system that can be used to manage the compilation and re-compilation of programs that are written in any programming language. I use Makefiles quite often in my projects to automate the build process however, there are times when Makefiles become overly complex for the task - particularly when building projects that have multiple sub directories, or projects that are to be deployed to multiple platforms.īuilding complex projects is where CMake really shines - CMake is a cross-platform Makefile generator! Simply put, CMake automatically generates the Makefiles for your project. This article provides a straightforward set of “Hello World!” introductions to using CMake for building C++ projects. All steps are performed using Linux on the BeagleBone platform, but the instructions are relevant to most Linux platforms. 7 Example 5: Using a Shared or Static Library.6 Example 4: Building a Static Library (.a).5 Example 3: Building a Shared Library (.so). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |