Commit 66bad46d authored by Dominik Charousset's avatar Dominik Charousset

Make LaTeX setup position-independent

parent 1b1aae99
...@@ -654,11 +654,6 @@ message(STATUS "Set release version for all documentation to ${CAF_RELEASE}.") ...@@ -654,11 +654,6 @@ message(STATUS "Set release version for all documentation to ${CAF_RELEASE}.")
# -- Setup for building manual and API documentation --------------------------- # -- Setup for building manual and API documentation ---------------------------
# we need the examples and some headers relative to the build/doc/tex directory
file(COPY examples/ DESTINATION examples)
file(COPY libcaf_core/caf/exit_reason.hpp DESTINATION libcaf_core/caf/)
file(COPY libcaf_core/caf/sec.hpp DESTINATION libcaf_core/caf/)
add_subdirectory(doc) add_subdirectory(doc)
################################################################################ ################################################################################
......
cmake_minimum_required(VERSION 2.8.12)
project(doc NONE)
add_custom_target(doc) add_custom_target(doc)
# -- list all .tex source files ------------------------------------------------ # -- list all .tex source files ------------------------------------------------
......
\newcommand{\cafrelease}{@CAF_RELEASE@} \newcommand{\cafrelease}{@CAF_RELEASE@}
\newcommand{\cafsha}{@CAF_SHA@} \newcommand{\cafsha}{@CAF_SHA@}
\newcommand{\cafroot}{@PROJECT_SOURCE_DIR@}
...@@ -124,20 +124,20 @@ User Manual\\ ...@@ -124,20 +124,20 @@ User Manual\\
\newcommand{\cppexample}[2][]{% \newcommand{\cppexample}[2][]{%
\ifthenelse{\isempty{#1}}% \ifthenelse{\isempty{#1}}%
{\lstinputlisting{../../examples/#2.cpp}}% {\lstinputlisting{\cafroot/examples/#2.cpp}}%
{\lstinputlisting[language=C++,linerange={#1}]{../../examples/#2.cpp}}% {\lstinputlisting[language=C++,linerange={#1}]{\cafroot/examples/#2.cpp}}%
} }
\newcommand{\iniexample}[2][]{% \newcommand{\iniexample}[2][]{%
\ifthenelse{\isempty{#1}}% \ifthenelse{\isempty{#1}}%
{\lstinputlisting[language=ini]{../../examples/#2.ini}}% {\lstinputlisting[language=ini]{\cafroot/examples/#2.ini}}%
{\lstinputlisting[language=ini,linerange={#1}]{../../examples/#2.ini}}% {\lstinputlisting[language=ini,linerange={#1}]{\cafroot/examples/#2.ini}}%
} }
\newcommand{\sourcefile}[2][]{% \newcommand{\sourcefile}[2][]{%
\ifthenelse{\isempty{#1}}% \ifthenelse{\isempty{#1}}%
{\lstinputlisting[language=C++]{../../#2}}% {\lstinputlisting[language=C++]{\cafroot/#2}}%
{\lstinputlisting[language=C++,linerange={#1}]{../../#2}}% {\lstinputlisting[language=C++,linerange={#1}]{\cafroot/#2}}%
} }
% highlight for INI file syntax % highlight for INI file syntax
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment