I just merged the pull request that added the manpage. I hadn't installed
xmlto previously, so it failed first. I looked at the code to see if xmlto
was being detected:

if(WITH_MANPAGES)
add_custom_command(OUTPUT xfreerdp.1
COMMAND xmlto man ${CMAKE_CURRENT_SOURCE_DIR}/xfreerdp.1.xml
DEPENDS xfreerdp.1.xml)

add_custom_target(xfreerdp.manpage ALL
DEPENDS xfreerdp.1)

install(FILES xfreerdp.1 DESTINATION share/man/man1)
endif()

Is it possible to have a "find_package(xmlto)" that simply checks for the
xmlto executable, and if it is present, it will generate the documentation?

On Mon, Aug 29, 2011 at 2:23 PM, Mike Gilbert <floppymas...@gmail.com>wrote:

> On Mon, Aug 29, 2011 at 1:26 PM, Otavio Salvador
> <ota...@ossystems.com.br> wrote:
> > On Mon, Aug 29, 2011 at 14:00, Nils Andresen <n...@nils-andresen.de>
> wrote:
> > ...
> >> Write the manpage by hand - this is doable. Others do it, too.
> >> Use DocBook - I would prefer this, but it would mean that every
> >> developer would need to have xmlto installed.  I would have no
> >> problems with that - but I do not know how others would view this.
> >
> > Many application depends on docbook to be available and if it is a
> > problem people can hack cmake and avoid the manpage building.
> >
>
> Or just add an option; no need for hacking then.
>
>
> ------------------------------------------------------------------------------
> Special Offer -- Download ArcSight Logger for FREE!
> Finally, a world-class log management solution at an even better
> price-free! And you'll get a free "Love Thy Logs" t-shirt when you
> download Logger. Secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sdnews
> _______________________________________________
> Freerdp-devel mailing list
> Freerdp-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freerdp-devel
>
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Freerdp-devel mailing list
Freerdp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freerdp-devel

Reply via email to