Re: [CMake] Multiple install section from the same base folder

2011-07-12 Thread Eric Noulard
2011/7/12 Laszlo Papp : > > > Here is what I would advise (of course by setting some option if you > want two have it also the "original" way): > > install(FILES >   atticamanager.h >   authentication.h >   archive/archive.h >   models/commentitemsmodel.h >   models/gameitemsmodel.h >   models

Re: [CMake] Multiple install section from the same base folder

2011-07-12 Thread Laszlo Papp
Hi Eric, > Honestly I do not see any benefit in this, but may be I did not > understand what you meant? Here is an example then: Original version: install(FILES atticamanager.h authentication.h DESTINATION ${INCLUDE_INSTALL_DIR}/gluon/player/lib COMPONENT Devel ) install(FILES

Re: [CMake] Multiple install section from the same base folder

2011-07-12 Thread Eric Noulard
2011/7/12 Laszlo Papp : > Hi, > >> Not sure whether if it's better than your current solution. >> May be it's a little less painless to write. > > Would it make sense to add an option to these install sections so that > it grabs the files as they are (with subfolders, if any), if you set > that opt

Re: [CMake] Multiple install section from the same base folder

2011-07-12 Thread Laszlo Papp
Hi, > Not sure whether if it's better than your current solution. > May be it's a little less painless to write. Would it make sense to add an option to these install sections so that it grabs the files as they are (with subfolders, if any), if you set that option or something like that ? That wo

Re: [CMake] Multiple install section from the same base folder

2011-07-12 Thread Eric Noulard
2011/7/12 Laszlo Papp : > Hi, > > I have just realized this snippet in my CMakeLists.txt file: > > install(FILES >    atticamanager.h >    authentication.h > >    DESTINATION ${INCLUDE_INSTALL_DIR}/gluon/player/lib >    COMPONENT Devel > ) > > install(FILES >    archive/archive.h > >    DESTINATION

Re: [CMake] Multiple install section from the same base folder

2011-07-11 Thread Laszlo Papp
Hi, On Tue, Jul 12, 2011 at 9:03 AM, Andreas Naumann wrote: > You could use > file(GLOB_RECURSE files *.h) The problem is a bit slightly different. It is not a problem for me to find the files on my own. :) The problem is that I would like to install "foo/bar.h" into the destination as "foo/bar.

Re: [CMake] Multiple install section from the same base folder

2011-07-11 Thread Andreas Naumann
You could use file(GLOB_RECURSE files *.h) or install the main directory with install(DIRECTORY ... ) and exclude every non-header file (and possibly svn..) Andreas Am 12.07.2011 05:04, schrieb Laszlo Papp: Hi, I have just realized this snippet in my CMakeLists.txt file: install(FILES

[CMake] Multiple install section from the same base folder

2011-07-11 Thread Laszlo Papp
Hi, I have just realized this snippet in my CMakeLists.txt file: install(FILES atticamanager.h authentication.h DESTINATION ${INCLUDE_INSTALL_DIR}/gluon/player/lib COMPONENT Devel ) install(FILES archive/archive.h DESTINATION ${INCLUDE_INSTALL_DIR}/gluon/player/lib/arch