From: Kornel Benko Date: Mon, 16 May 2011 11:43:53 +0000 (+0000) Subject: Use Doxyfile.in as source to create Doxyfile. (As in autotools) X-Git-Tag: 2.1.0beta1~3230 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;ds=inline;h=26f255fe303a7ac295dfd57e429487413d0e5f42;p=features.git Use Doxyfile.in as source to create Doxyfile. (As in autotools) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38776 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/sourcedoc/CMakeLists.txt b/sourcedoc/CMakeLists.txt index 42c2c4829d..856ff9a785 100644 --- a/sourcedoc/CMakeLists.txt +++ b/sourcedoc/CMakeLists.txt @@ -11,11 +11,14 @@ find_program(DOXYGEN_EXECUTABLE doxygen) 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()