![]() ![]() Here you have some very good presentation about key CMake functionalities: Learning CMake (Pau Garcia i Quiles) ![]() and it will generate all files necessary for you to build software via a simple make or make all. If you would like to build your software on the Linux/Unix platform, you would simply go to source directory where you have your CMakeLists.txt file and trigger the same cmake. CMake will generate all the necessary project/solution files (. Inside your project's directory on the Windows platform. In your example, it has produced Makefile which are used to build your software (mostly on Linux/Unix platform).ĬMake allows to provide cross-platform build files that would generate platform-specific project/make files for a particular compilation/platform.įor instance, you may to try to compile your software on Windows with Visual Studio, and then with proper syntax in your CMakeLists.txt file you can launch cmake. In most cases, it is used to generate project/make files. Do not worry too much about the gory details - as this is what CMake was trying to spare you of in the first place.ĬMake is cross-platform, open-source build system for managing the build process of software using a compiler-independent method As long as the result builds your project as expected, you are probably fine. All problems can be solved from within CMakeLists.txt in one way or the other. In general you should not mess with any of the files that CMake generates for you. In particular, I never needed to care about anything that is going on inside the CMakeFiles subdirectory.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |