Skip to content

Commit

Permalink
Build manual PDF in source tree.
Browse files Browse the repository at this point in the history
Resolves #16.
  • Loading branch information
jdswinbank committed Dec 18, 2015
1 parent 4b86352 commit 3484cdc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Other useful options include:

* `-DBUILD_MANUAL=true`

Build a PDF manual in `DNest3/build/doc`. Requires pdfLaTeX.
Build a PDF manual in `DNest3/doc`. Requires pdfLaTeX.


Copyright and Licence
Expand Down
7 changes: 4 additions & 3 deletions doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ find_package (LATEX)
if (PDFLATEX_COMPILER)
add_custom_command(
OUTPUT manual.pdf
COMMAND ${PDFLATEX_COMPILER}
ARGS ${CMAKE_SOURCE_DIR}/doc/manual.tex
DEPENDS manual.tex
COMMAND ${PDFLATEX_COMPILER} manual.tex
COMMAND ${PDFLATEX_COMPILER} manual.tex
COMMAND ${PDFLATEX_COMPILER} manual.tex
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/doc
)
add_custom_target(manual ALL echo
DEPENDS manual.pdf
Expand Down

0 comments on commit 3484cdc

Please sign in to comment.