Commit 57de3e3a authored by Carsten Burgard's avatar Carsten Burgard
Browse files

switching to using PROJECT_SOURCE_DIR in the doc folder to allow inclusion as submodule

parent 9bcb4c2e
......@@ -5,7 +5,7 @@
FIND_PACKAGE(Doxygen)
IF(DOXYGEN_FOUND)
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/doc/reference/Doxyfile.in ${CMAKE_BINARY_DIR}/reference/Doxyfile @ONLY)
CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/doc/reference/Doxyfile.in ${CMAKE_BINARY_DIR}/reference/Doxyfile @ONLY)
ADD_CUSTOM_TARGET(reference
${DOXYGEN_EXECUTABLE} ${CMAKE_BINARY_DIR}/reference/Doxyfile
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/reference
......@@ -27,7 +27,7 @@ FIND_PACKAGE(LATEX)
IF(LATEX_COMPILER)
MESSAGE(STATUS "Found LaTeX compiler.")
SET(LATEX_COMPILER_FLAGS "-shell-escape" "-interaction nonstopmode" "-halt-on-error" "-file-line-error" CACHE STRING "Flags passed to latex.")
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/LATEX.cmake)
INCLUDE(${PROJECT_SOURCE_DIR}/cmake/LATEX.cmake)
SET(HTLATEX_COMPILER_TEX4HT_FLAGS "usermanual/html/corryvreckan,charset=utf-8" CACHE STRING "Flags passed to Tex4HT" FORCE)
SET(HTLATEX_COMPILER_TEX4HT_POSTPROCESSOR_FLAGS "-utf8 -cunihtf" CACHE STRING "Flags passed to the postprocessor of Tex4HT" FORCE)
......@@ -38,10 +38,10 @@ IF(LATEX_COMPILER)
)
# Check for pandoc for markdown conversion
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/PANDOC.cmake)
INCLUDE(${PROJECT_SOURCE_DIR}/cmake/PANDOC.cmake)
IF(PANDOC_EXECUTABLE)
# Loop through all modules and fetch their README
SET(module_dir ${CMAKE_SOURCE_DIR}/src/modules)
SET(module_dir ${PROJECT_SOURCE_DIR}/src/modules)
FILE(GLOB subdirs RELATIVE ${module_dir} ${module_dir}/*)
FOREACH(subdir ${subdirs})
IF(EXISTS ${module_dir}/${subdir}/README.md AND NOT ${subdir} STREQUAL "Dummy")
......@@ -65,7 +65,7 @@ IF(LATEX_COMPILER)
ADD_PANDOC_DOCUMENT(
${CMAKE_BINARY_DIR}/usermanual/md/${readme_parent_dir}/${readme_dir_name}.tex
SOURCES ${CMAKE_SOURCE_DIR}/${doc_readme_file}
SOURCES ${PROJECT_SOURCE_DIR}/${doc_readme_file}
PRODUCT_DIRECTORY usermanual/md/${readme_parent_dir}/
PANDOC_DIRECTIVES -t latex --listings --biblatex
NO_EXPORT_PRODUCT
......
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