[CMake] Howto say cmake to copy files in the builddir

Alan W. Irwin irwin at beluga.phys.uvic.ca
Mon May 21 13:16:55 EDT 2007


On 2007-05-21 14:03+0200 Matthias Fechner wrote:

> Hi,
>
> I try to use cmake to compile my masterthesis which will be written in
> LaTeX.
> I checked the wiki page and found the macro UseLATEX.cmake.
> Now I have the following problem:
> The format file (.sty file) which my masterthesis uses is in the
> directory format/standard_eng.sty and some more files there.
>
> How can I say cmake to copy this directory/files to the builddir?

I understand Eric Noulard has already given you a specific latex-level
answer that you like, but to answer your original question at the CMake
level, see the COPYONLY option for CONFIGURE as documented at
http://cmake.org/HTML/Documentation.html.  Use something like

CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/format/standard_eng.sty
${CMAKE_CURRENT_BINARY_DIR}/format/standard_eng.sty
COPYONLY
)

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 libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________


More information about the CMake mailing list