Have you tried the "INSTALL(DIRECTORY" form of the INSTALL command...? Not
sure which patch it was introduced in, but it is definitely in 2.4.5 and
later...
See "cmake --help-command INSTALL" and read through the DIRECTORY section. I
think that's the thing that achieves what you want with the least amount of
work on your part.
Or have you tried that already and there's some issue with it...?
HTH,
David
On 1/31/07, Alan W. Irwin <[EMAIL PROTECTED]> wrote:
On 2007-01-31 17:49-0800 Radu Serban wrote:
> In any case, the alternative I really meant to suggest (which I use in
my
> project) is:
>
> file(GLOB USER_DOCS ${CMAKE_SOURCE_SIR}/doc/user/html/*)
> install(FILES ${USER_DOCS} DESTINATION ${docdir}/html/user/html)
>
> This doesn't use the undocumented file(INSTALL signature and will
certainly
> work as you want.
Sorry, I should have made clear in my original post that the files I was
globbing are generated at "make" time. Obviously, the first file command
above occurs at configuration time before the files are generated so will
not work for my case. That is why I have to put the undocumented magic
inside the documented "install(CODE..." signature for my case.
Alan
__________________________
Alan W. Irwin
Astronomical research affiliation with Department of Physics and
Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting
software
package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the
Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________
Linux-powered Science
__________________________
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake