Sphinx and CMake, based on this example:

http://ericscottbarr.com/blog/2012/03/sphinx-and-cmake-beautiful-documentation-for-c-projects/

The 'docs/CMakeLists.txt' file was deleted in this commit: 0abfb8f46f

Thanks to Arnaud Gelas, he has passed some links:
   https://github.com/InsightSoftwareConsortium/ITKExamples/blob/master/CMake/FindSphinx.cmake
   https://github.com/InsightSoftwareConsortium/ITKExamples/blob/master/CMakeLists.txt#L120-L154

Change-Id: Ic65e7f8ec5280d1e71a897a144417a21761c5553
This commit is contained in:
Pablo Speciale
2013-03-12 00:56:56 -07:00
committed by Gerrit Code Review
parent 793a339335
commit c51b11c104
7 changed files with 87 additions and 15 deletions
+5 -6
View File
@@ -40,9 +40,9 @@ fi
TMP="/tmp/ceres-solver-$1"
DOCS_TMP="/tmp/ceres-solver-docs-$1"
VERSION=$(grep 'SET(CERES_VERSION' CMakeLists.txt | \
sed -e 's/SET(CERES_VERSION //' | \
sed -e 's/)//')
VERSION=$(grep 'SET(CERES_VERSION_' CMakeLists.txt | \
sed -e 's/\(.*\) \(.*\))/\2/' | \
tr '\n' '.' | sed -e 's/.$//')
ABI_VERSION=$(grep 'SET(CERES_ABI_VERSION' CMakeLists.txt | \
sed -e 's/SET(CERES_ABI_VERSION //' | \
sed -e 's/)//')
@@ -89,9 +89,8 @@ if [[ $VERSION_IN_SPEC != $VERSION ]] ; then
exit 1
fi
# Clone the repository and clean out the git extras.
git clone . $TMP
rm -rf "$TMP/.git"
# Export repository.
git checkout-index -f -a --prefix=$TMP/
# Build the VERSION file.
VERSIONFILE=$TMP/VERSION