Prepared release of 3.1.0.
[libsex.git] / doc / CMakeLists.txt
bloba427abc208444181b5886856386b8da768282db0
1 SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeModules/")
3 ADD_CUSTOM_TARGET(doc)
5 # Overview about this project.
6 FIND_PACKAGE(MarkDown)
7 IF(MARKDOWN_FOUND)
8         CONFIGURE_FILE(
9                 ${CMAKE_CURRENT_SOURCE_DIR}/ABOUT.mdwn.in
10                 ${CMAKE_CURRENT_BINARY_DIR}/ABOUT.mdwn @ONLY)
12         ADD_CUSTOM_TARGET(
13                 about
14                 COMMAND ${MARKDOWN_EXECUTABLE}
15                         ${CMAKE_CURRENT_BINARY_DIR}/ABOUT.mdwn
16                         -f ${CMAKE_CURRENT_BINARY_DIR}/ABOUT.html)
18         ADD_DEPENDENCIES(doc about)
19 ENDIF()
21 # API documentation build by Doxygen.
22 FIND_PACKAGE(Doxygen)
23 IF(DOXYGEN_FOUND)
24         CONFIGURE_FILE(
25                 ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
26                 ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
28         ADD_CUSTOM_TARGET(
29                 doxygen
30                 ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
31                 WORKING_DIRECTORY @PROJECT_BINARY_DIR@/doc)
33         ADD_DEPENDENCIES(doc doxygen)
34 ENDIF()