summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorAdrian Negreanu <adrian.m.negreanu@intel.com>2015-06-16 11:50:21 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2015-07-18 13:07:23 (GMT)
commit3c4a1ea2ee56f2604c2277f13737d53b3a0b0353 (patch)
treea49fca3f798577cea86fec18c203d61f4499c041 /cmake
parent1989a4918340bcdb5c5447afba1468e7eecc7705 (diff)
downloadDoxygen-3c4a1ea2ee56f2604c2277f13737d53b3a0b0353.zip
Doxygen-3c4a1ea2ee56f2604c2277f13737d53b3a0b0353.tar.gz
Doxygen-3c4a1ea2ee56f2604c2277f13737d53b3a0b0353.tar.bz2
doc: generate Doxygen's documentation.
* use configure_files to avoid different $ semantics when COMMAND lines are expanded in build files. ($$var vs. \$var) * nmake/gmake no longer needed by cmake, when building doc. * explicitly copy doc files into build directory to make it clear what files each build stage uses. Documentation can be built with: mkdir build/ && cd $_ cmake -Dbuild_doc=1 .. # add -G"NMake Makefiles" for nmake make docs # this builds doxygen first v3: replace file(COPY) with proper generated file tagging. v2: Remove option to build documentation independently from doxygen. tested on linux(gmake) and windows(nmake) [thanks albert]
Diffstat (limited to 'cmake')
-rw-r--r--cmake/run_translator.cmake2
-rw-r--r--cmake/version.cmake2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmake/run_translator.cmake b/cmake/run_translator.cmake
index 618bb82..d1b187c 100644
--- a/cmake/run_translator.cmake
+++ b/cmake/run_translator.cmake
@@ -1,4 +1,4 @@
-include(${SOURCE}/cmake/version.cmake)
+include(${TOP}/cmake/version.cmake)
find_program(PYTHON NAMES python)
execute_process(
COMMAND ${PYTHON} ${CMAKE_SOURCE_DIR}/translator.py
diff --git a/cmake/version.cmake b/cmake/version.cmake
index 48de7b2..b59aa29 100644
--- a/cmake/version.cmake
+++ b/cmake/version.cmake
@@ -1,2 +1,2 @@
-file (STRINGS "${SOURCE}/VERSION" VERSION)
+file (STRINGS "${TOP}/VERSION" VERSION)
set(ENV{VERSION} "${VERSION}")