SAnsell / CombLayer

MCNP(X) project builder using C++
GNU General Public License v3.0
14 stars 13 forks source link

CMAKE conversion #34

Open SAnsell opened 9 years ago

SAnsell commented 9 years ago

I have moved the main makefile builder from my perl script into a cmake CMakeLists.txt system.

It should be run like this:

cmake ./
make

I have provided a perl script to construct CMakeLists.txt (CMake.pl) but that should not need to be run. I make use of file(GLOB ... in the CMakeLists.txt file so if you add a new file you have to do a new cmake (otherwise just make). It should be similar speed to the old one -- but let me know if not. I am learning my way with cmake, so those of you that know cmake well, please chip is an improve the system as you feel fit.

The main reason for this change was because the old per script was getting difficult to maintain. This was particularly the case when people wanted to add sub-sub directories.

Additionally, cmake is now producing much better makefiles a than its previous versions. That means that you can touch various files and only those things that have to be rebuilt are.

Obviously I have kept the old getMake/getMk system around (for a while). If you have problems with the new cmake please let me know.

Finally, I will be adding an amount of extra decision, because at the moment, no-gsl / boost etc is not supported. I will get to that ASAP.