cyclus/core — pull request #186 by katyhuff (2012-06-05 20:29:56+00:00)
Title: Issue14simple

Mainly, this change addresses issue #14. To install cyclus, you can now invoke :

ccmake
make
sudo make install

This set of commits also :

* Made it possible to specify an output directory and made the default output directory the current working directory (with a "-o" flag on the command line). This was necessary because the installed executable is likely to be in a root-only directory, and the output should not be placed there by default.
* Created a cmake macro that simplifies the CMakeLists files in the module directories. It automatically puts the module libraries and rng files in the lib/Model/ModuleType/ModuleName/ directory in the install or build space.
* Simplified the main CMakeLists file by adding a new one to the Config directory, where there should have been one anyway.
* Created an installation directory structure that looks like this :

* PREFIX/cyclus/lib
* Models
* Facility
* MyFacility
* MyFacility.dylib(so)
* MyFacility.rng
* YourFacility
* YourFacility.dylib(so)
* YourFacility.rng
* ...
* Region
* ...
* Inst
* ...
* ...
* PREFIX/cyclus/bin
* cyclus
* CyclusUnitTestDriver
* run_inputs.py
* PREFIX/cyclus/share
* cyclus.rng
* mass.sqlite
* decayInfo.dat
* …

* This also added the capability to do some packaging with Cpack. Try 'make package'. If you have cpack properly set up on your machine, it should generate a clickable GUI installer for your platform. Please check it out on as many platforms as you have access to. (CPack may be broken on Lion where it doesn't seem to know how to find the packagemaker… ). So that this packaging works well, I've also added a LICENSE file with which the installer prompts folks who are clicking through. So too, I have replicated the README.rst file in the Config directory for that purpose.
* The StubCommModel didn't have tests to go with it, so I added some that are just like the StubModel.
* Finally, this set of commits made sure a few more of the tests are being run when make test is called, addressing some of issue #176 .

I'd like this to close issue #14. The part of issue #14 that are not addressed by this commit (namely the issues raised in #175 and #176) are their own issues, now independent of the installation directory structure implemented here.