Am Freitag, 6. Mai 2011 schrieb Stephan Witt:
> Am 06.05.2011 um 11:21 schrieb Kornel:
> > Am Freitag, 6. Mai 2011 schrieb Jean-Marc Lasgouttes:
> > > Le 06/05/2011 08:24, Stephan Witt a écrit :
> > > >> * Run in place, without using LYX_DIR_20x
> > > >> 
> > > >     copy the resources (bind/ ui/ layouts/ dicts/ thes/ ...) to the
> > > >     build stage (?) This is what I do: copy them from an autotools
> > > >     install into the cmake project.
> > > 
> > > No, Package.cpp has to be fixed.
> > > 
> > > JMarc
> > 
> > Yes. And config.h.cmake (and maybe config.h.in)
> 
> Then we should put *this* on ToDo.
> 
> Stephan

I would like to move the cmake build into top-level.
The patch would be the least invasive I could think of.
It contains
        * 1 (one) new file in top-dir
        * small changes in 3 files

Calling in the top-level-source like
        # cmake -DLYX_CPACK=ON -DLYX_NLS=ON
will create some files in the top source dir
        * Makefile
        * CMakeCache.txt
        * configCompiler.h
        * CPackConfig.cmake
        * CPackSourceConfig.cmake
and some directories
        * CMakeFiles
        * build

Subsequen call to
        # make
will build all the data in the subdirectory "build", so than no pollution in 
source tree follows.

Of course it is possible to use own build tree, we would need to call cmake as 
before
with the parameter value of top-source-dir

        Kornel

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to