I'm using UseLATEX.cmake with CMake and it works pretty well except for passing compiler flags.
For example, in the main directory I have a basic TeX file
UseLATEX.cmake file, and this CMakeLists.txt
cmake_minimum_required(VERSION 2.8.4) project(test NONE) include(UseLATEX.cmake) set(LATEX_COMPILER_FLAGS "-jobname=another_name") set(PDFLATEX_COMPILER pdflatex) set(LATEX_DEFAULT_BUILD pdf) add_latex_document(main.tex)
I make a directory called
./build, cd into it, and run
cmake ../ then
make. The output pdf is still called
main.pdf and not
another_name.pdf. It won't accept any compiler flags that I give it. Any ideas?