Is it possible to convert CMakeLists.txt to a Unix Makefile?

I am trying to get rid of cmake in my project for some reason. I need to create unix makefiles to create my project. If I use cmake to create them for me, then make files will in any case depend on cmake. The only build tools I can use is one of the GNU tools.

+4
source share
1 answer

cmake was invented as a portable way to create makefiles. If you want to take a look at an alternative, check out bjam from boost . This tool works with many toolboxes (the so-called toolbox in bjam terminology) and is pretty easy to use since cmake is.

If you really want to get rid of cmake or bjam, then write your own makefiles using those that cmake created as a base, for example ... But this will limit the amount of systems and toolkits that your code will compile on, to be honest , I would rather think that as a pain and urge you to use bjam if you need more effective support for other tools.

+2
source

Source: https://habr.com/ru/post/1335669/


All Articles