mirror of
https://github.com/g-truc/glm.git
synced 2024-11-16 23:04:35 +00:00
Clarify the manual building requirements a bit
- You're now warned if the manual dependencies aren't available - Target name for building only the manual provided if dependencies found
This commit is contained in:
parent
0033f0bf2e
commit
b542041396
@ -12,15 +12,19 @@ enable_testing()
|
|||||||
|
|
||||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||||
|
|
||||||
option(GLM_BUILD_MANUAL_ENABLE "Build GLM manual" OFF)
|
option(GLM_BUILD_MANUAL_ENABLE "Build GLM manual (requires LaTeX, Python, and Pygments)" OFF)
|
||||||
if(GLM_BUILD_MANUAL_ENABLE)
|
if(GLM_BUILD_MANUAL_ENABLE)
|
||||||
set(LATEX_OUTPUT_PATH "doc") # Where the pdf will ultimately be spit out
|
set(LATEX_OUTPUT_PATH "doc") # Where the pdf will ultimately be spit out
|
||||||
|
|
||||||
include(UseLATEX) # For compiling the manual
|
include(UseLATEX) # For compiling the manual
|
||||||
find_package(PythonInterp) # For LaTeX's minted package, needed for source highlighting
|
find_package(PythonInterp REQUIRED) # For LaTeX's minted package, needed for source highlighting
|
||||||
include(FindPythonModule) # For minted, which uses pygments
|
include(FindPythonModule) # For minted, which uses pygments
|
||||||
find_python_module(pygments REQUIRED)
|
find_python_module(pygments REQUIRED)
|
||||||
|
|
||||||
add_latex_document("doc/glm.tex" TARGET_NAME manual)
|
if(LATEX_COMPILER AND PYTHONINTERP_FOUND AND PY_PYGMENTS)
|
||||||
|
add_latex_document("doc/glm.tex" TARGET_NAME manual)
|
||||||
|
message(STATUS "To build the GLM manual by itself, rather than as part of the default target, run the 'manual' target")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(GLM_TEST_ENABLE "GLM test" OFF)
|
option(GLM_TEST_ENABLE "GLM test" OFF)
|
||||||
|
Loading…
Reference in New Issue
Block a user