Re: [cmake-developers] Integration of manpage installation

2011-06-08 Thread Eric Noulard
2011/6/7 Michael Wild them...@gmail.com: On 06/07/2011 07:40 PM, Werner Mahr wrote: Michael Wild wrote: [...] I don't think that writing stuff like this in many different projects is a good idea, that's why I proposed to include it native in cmake. ADD_EXECUTABLE(app, sources)

[cmake-developers] Integration of manpage installation

2011-06-07 Thread Werner Mahr
Hi, after reading some stuff about integration of KDE-stuff into cmake, I want to know your oppinion about manpages. At least on unix-based systems it's an essential function of a build-environment to allow installation of the docs. My suggestion is, to add a new property like man-source-dir

Re: [cmake-developers] Integration of manpage installation

2011-06-07 Thread Eric Noulard
2011/6/7 Werner Mahr wer...@vollstreckernet.de: Hi, after reading some stuff about integration of KDE-stuff into cmake, I want to know your oppinion about manpages. At least on unix-based systems it's an essential function of a build-environment to allow installation of the docs. My

Re: [cmake-developers] Integration of manpage installation

2011-06-07 Thread Werner Mahr
Eric Noulard wrote: My suggestion is, to add a new property like man-source-dir or somehow like that, and all pages in that dir are installed to the right place if they start with the name of the corresponding executable. Have a look at the new (in 2.8.4) GnuInstallDirs.cmake module:

Re: [cmake-developers] Integration of manpage installation

2011-06-07 Thread Michael Wild
On 06/07/2011 03:47 PM, Werner Mahr wrote: Eric Noulard wrote: My suggestion is, to add a new property like man-source-dir or somehow like that, and all pages in that dir are installed to the right place if they start with the name of the corresponding executable. Have a look at the new

Re: [cmake-developers] Integration of manpage installation

2011-06-07 Thread Brad King
On 06/07/2011 10:31 AM, Michael Wild wrote: install(FILES cmake.1 DESTINATION ${CMAKE_INSTALL_FULL_MANDIR}/man1 COMPONENT doc) Actually that should be CMAKE_INSTALL_MANDIR. The documentation of GnuInstallDirs specifies that the variables without _FULL_ are meant for passing to install

Re: [cmake-developers] Integration of manpage installation

2011-06-07 Thread Werner Mahr
Michael Wild wrote: Rename from appname.section or appname.lang.section to appname install to $mandir/section/appname[.gz] or $mandir/section/lang/appname[.gz] install(FILES cmake.1 DESTINATION ${CMAKE_INSTALL_FULL_MANDIR}/man1 COMPONENT doc) If you want gzipping, either leave it to

Re: [cmake-developers] Integration of manpage installation

2011-06-07 Thread Michael Wild
On 06/07/2011 07:40 PM, Werner Mahr wrote: Michael Wild wrote: foreach(m amule.1 amule.de.1 locale.7) get_filename_component(b ${m} NAME_WE) get_filename_component(e ${m} EXT) if(e MATCHES (([a-zA-Z_-]+)\\.)?([0-9])) set(l ${CMAKE_MATCH_2}) set(s ${CMAKE_MATCH_3}) else()