Fix 'make install' without 'make html' using CMAKE (#207)
authorAkos Ladanyi <ladanyi@tmit.bme.hu>
Wed, 21 Jan 2009 18:06:17 +0000
changeset 3558b56605db6a8
parent 353 81d40f1c850c
child 356 227f36959519
child 358 f9a879c9787c
Fix 'make install' without 'make html' using CMAKE (#207)
doc/CMakeLists.txt
     1.1 --- a/doc/CMakeLists.txt	Sun Dec 21 20:45:25 2008 +0100
     1.2 +++ b/doc/CMakeLists.txt	Wed Jan 21 18:06:17 2009 +0000
     1.3 @@ -9,6 +9,7 @@
     1.4    @ONLY)
     1.5  
     1.6  IF(DOXYGEN_EXECUTABLE AND GHOSTSCRIPT_EXECUTABLE)
     1.7 +  FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/)
     1.8    IF(UNIX)
     1.9      ADD_CUSTOM_TARGET(html
    1.10        COMMAND rm -rf gen-images
    1.11 @@ -34,9 +35,8 @@
    1.12        COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile
    1.13        WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
    1.14    ENDIF(UNIX)
    1.15 +  INSTALL(
    1.16 +    DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/
    1.17 +    DESTINATION doc
    1.18 +    COMPONENT html_documentation)
    1.19  ENDIF(DOXYGEN_EXECUTABLE AND GHOSTSCRIPT_EXECUTABLE)
    1.20 -
    1.21 -INSTALL(
    1.22 -  DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/
    1.23 -  DESTINATION doc
    1.24 -  COMPONENT html_documentation)