lemon-project-template-glpk
diff doc/CMakeLists.txt @ 0:368136e07d23
LEMON project template
author | Alpar Juttner <alpar@cs.elte.hu> |
---|---|
date | Tue, 26 May 2009 16:18:51 +0100 |
parents | |
children | dda9b6665fde |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/doc/CMakeLists.txt Tue May 26 16:18:51 2009 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +SET(PACKAGE_NAME ${PROJECT_NAME}) 1.5 +SET(PACKAGE_VERSION ${PROJECT_VERSION}) 1.6 +SET(abs_top_srcdir ${PROJECT_SOURCE_DIR}) 1.7 +SET(abs_top_builddir ${PROJECT_BINARY_DIR}) 1.8 + 1.9 +CONFIGURE_FILE( 1.10 + ${PROJECT_SOURCE_DIR}/doc/Doxyfile.in 1.11 + ${PROJECT_BINARY_DIR}/doc/Doxyfile 1.12 + @ONLY) 1.13 + 1.14 +IF(DOXYGEN_EXECUTABLE) 1.15 + FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/) 1.16 + IF(UNIX) 1.17 + ADD_CUSTOM_TARGET(html 1.18 + COMMAND rm -rf html 1.19 + COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile 1.20 + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) 1.21 + ELSEIF(WIN32) 1.22 + ADD_CUSTOM_TARGET(html 1.23 + COMMAND if exist html rmdir /s /q html 1.24 + COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile 1.25 + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) 1.26 + ENDIF(UNIX) 1.27 + INSTALL( 1.28 + DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ 1.29 + DESTINATION share/doc 1.30 + COMPONENT html_documentation) 1.31 +ENDIF(DOXYGEN_EXECUTABLE)