mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
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
This commit is contained in:
parent
d636936877
commit
26f255fe30
@ -11,11 +11,14 @@ find_program(DOXYGEN_EXECUTABLE doxygen)
|
|||||||
if(DOXYGEN_EXECUTABLE MATCHES "-NOTFOUND")
|
if(DOXYGEN_EXECUTABLE MATCHES "-NOTFOUND")
|
||||||
message(STATUS "doxygen not found, ==> no doxygen creation")
|
message(STATUS "doxygen not found, ==> no doxygen creation")
|
||||||
else()
|
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(
|
add_custom_command(
|
||||||
OUTPUT doxy_created
|
OUTPUT doxy_created
|
||||||
COMMAND ${DOXYGEN_EXECUTABLE} ${TOP_SRC_DIR}/sourcedoc/Doxyfile
|
COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
|
||||||
COMMAND ${CMAKE_COMMAND} -E touch doxy_created
|
COMMAND ${CMAKE_COMMAND} -E touch doxy_created
|
||||||
DEPENDS ${TOP_SRC_DIR}/sourcedoc/Doxyfile
|
DEPENDS Doxyfile
|
||||||
)
|
)
|
||||||
add_custom_target(doxydoc DEPENDS doxy_created)
|
add_custom_target(doxydoc DEPENDS doxy_created)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user