cmake lib mode

- fix documentation for lib (not working for external project)
- fix compilation for cython modules for external project.
- simplify tests : not yet functional for an external project.

at this stage, ctseg compile and runs as an external project,
including python interface.

-> issue not fixable : the import of the script can not be the
same when built internally and externally.