Matthias Fechner wrote:
Hi,

I am writing my masterthesis with LaTeX and I use here cmake to do the
comilation for me.
Today I added gnuplot to my LaTeX document.

But I have now the problem that cmake first build the LaTeX document
and then the gnuplot file. How can I say cmake to first build my
gnuplot files?

Hi,

You might be able to make some use out of this:

INCLUDE(AddFileDependencies)
and then
ADD_FILE_DEPENDENCIES(${CMAKE_BINARY_DIR}/path/to/your/pdf ${CMAKE_BINARY_DIR}/path/to/your/gnuplot/output)

http://cmake.org/HTML/Documentation.html says that signature for ADD_FILE_DEPENDENCIES is

> ADD_FILE_DEPENDENCIES(source_file depend_files...)
> Adds the given files as dependencies to source_file

-- Jack
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to