aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-05-07 16:21:42 +0200
committerThomas White <taw@physics.org>2019-05-07 16:25:44 +0200
commit266ad1b2d4e9a11eee38813f93557ecb994e58d9 (patch)
treea271f6c513a118f4fd9b334068d669a81122446c /libcrystfel
parent1bed7848a99aba510726b3fa287b1d7a3f75dfa6 (diff)
Add CrystFEL version (including API revision) directly into Doxygen main page
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/CMakeLists.txt6
-rw-r--r--libcrystfel/doc/index.md3
2 files changed, 6 insertions, 3 deletions
diff --git a/libcrystfel/CMakeLists.txt b/libcrystfel/CMakeLists.txt
index faf6c8c4..f132c3a0 100644
--- a/libcrystfel/CMakeLists.txt
+++ b/libcrystfel/CMakeLists.txt
@@ -114,11 +114,13 @@ set(LIBCRYSTFEL_HEADERS
src/rational.h
)
+configure_file(${PROJECT_SOURCE_DIR}/doc/index.md index.md)
set(DOXYGEN_SHOW_INCLUDE_FILES NO)
set(DOXYGEN_WARN_IF_UNDOCUMENTED NO)
set(DOXYGEN_PREDEFINED HAVE_FFTW)
-doxygen_add_docs(api-docs ${PROJECT_SOURCE_DIR}/src ${PROJECT_SOURCE_DIR}/doc
- ${PROJECT_SOURCE_DIR}/doc)
+doxygen_add_docs(api-docs ${PROJECT_SOURCE_DIR}/src
+ ${CMAKE_CURRENT_BINARY_DIR}/index.md
+ ${PROJECT_SOURCE_DIR}/doc/coding.md)
add_library(${PROJECT_NAME} SHARED
${LIBCRYSTFEL_SOURCES}
diff --git a/libcrystfel/doc/index.md b/libcrystfel/doc/index.md
index 21844d54..d806a2e5 100644
--- a/libcrystfel/doc/index.md
+++ b/libcrystfel/doc/index.md
@@ -2,7 +2,8 @@
Version
=======
-This documentation is for libcrystfel from CrystFEL 0.8.0.
+This documentation is for libcrystfel from CrystFEL ${CRYSTFEL_VERSION}, API
+revision ${CRYSTFEL_API_VERSION}.
Abstract
========