Author: kornel
Date: Mon May 16 13:43:53 2011
New Revision: 38776
URL: http://www.lyx.org/trac/changeset/38776
Log:
Use Doxyfile.in as source to create Doxyfile. (As in autotools)
Modified:
lyx-devel/trunk/sourcedoc/CMakeLists.txt
Modified: lyx-devel/trunk/sourcedoc/CMakeLists.txt
==============================================================================
--- lyx-devel/trunk/sourcedoc/CMakeLists.txt Mon May 16 12:51:33 2011
(r38775)
+++ lyx-devel/trunk/sourcedoc/CMakeLists.txt Mon May 16 13:43:53 2011
(r38776)
@@ -11,11 +11,14 @@
if(DOXYGEN_EXECUTABLE MATCHES "-NOTFOUND")
message(STATUS "doxygen not found, ==> no doxygen creation")
else()
+ set(VERSION ${PACKAGE_VERSION} CACHE TYPE STRING FORCE)
+ set(top_srcdir "${TOP_SRC_DIR}" CACHE TYPE STRING FORCE)
+ configure_file("${TOP_SRC_DIR}/sourcedoc/Doxyfile.in" Doxyfile @ONLY)
add_custom_command(
OUTPUT doxy_created
- COMMAND ${DOXYGEN_EXECUTABLE} ${TOP_SRC_DIR}/sourcedoc/Doxyfile
+ COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
COMMAND ${CMAKE_COMMAND} -E touch doxy_created
- DEPENDS ${TOP_SRC_DIR}/sourcedoc/Doxyfile
+ DEPENDS Doxyfile
)
add_custom_target(doxydoc DEPENDS doxy_created)
endif()