Install man pages
[openjpeg.git] / doc / CMakeLists.txt
1 FIND_PACKAGE(Doxygen)
2 #
3 IF(DOXYGEN_EXECUTABLE)
4 # The Doxyfile.dox is poorly defined and produce output
5 # in the source dir
6 ADD_CUSTOM_TARGET(doxygen
7 # By default doxygen target is added to the 'all' target. Project is small
8 # thus running doxygen is not too time consuming
9   ALL
10   ${DOXYGEN}
11   ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.dox
12   WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
13 )
14 ENDIF(DOXYGEN_EXECUTABLE)
15
16 INSTALL(
17   FILES       man/man1/image_to_j2k.1
18               man/man1/j2k_dump.1
19               man/man1/j2k_to_image.1
20   DESTINATION ${OPENJPEG_INSTALL_MAN_DIR}/man1)
21 INSTALL(
22   FILES       man/man3/libopenjpeg.3
23   DESTINATION ${OPENJPEG_INSTALL_MAN_DIR}/man3)