CMakeLists.txt 1.08 KB
Newer Older
edrezen's avatar
edrezen committed
1
2
3

find_package (Doxygen)

edrezen's avatar
edrezen committed
4
5
# see http://www.cmake.org/pipermail/cmake/2008-May/021426.html

edrezen's avatar
edrezen committed
6
7
8
9
if (DOXYGEN_FOUND)

    CONFIGURE_FILE (${CMAKE_CURRENT_SOURCE_DIR}/doxygen/gatb.doxyfile  ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile  @ONLY)
    
10
11
12
13
14
15
    ADD_CUSTOM_TARGET (doc 
      ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
    )
    ADD_CUSTOM_TARGET (deploy-doc 
      COMMAND tar -zcf ${CMAKE_BINARY_DIR}/doc/doc.tgz -C ${CMAKE_BINARY_DIR}/doc/html .
      COMMAND scp ${CMAKE_BINARY_DIR}/doc/doc.tgz $ENV{USER}@scm.gforge.inria.fr:/home/groups/gatb-core/
16
17
      COMMAND ssh $ENV{USER}@scm.gforge.inria.fr "rm -rf /home/groups/gatb-core/htdocs/doc/api/*"
      COMMAND ssh $ENV{USER}@scm.gforge.inria.fr "tar -xf /home/groups/gatb-core/doc.tgz --no-overwrite-dir -C /home/groups/gatb-core/htdocs/doc/api"
18
    )
edrezen's avatar
edrezen committed
19
20
21
22
    
    INSTALL (CODE "execute_process(COMMAND ${CMAKE_BUILD_TOOL} doc)")
    
    INSTALL (DIRECTORY ${CMAKE_BINARY_DIR}/doc/html DESTINATION doc)
edrezen's avatar
edrezen committed
23
24
    
endif (DOXYGEN_FOUND)
edrezen's avatar
cosmit    
edrezen committed
25
26
27


# HERE IS A COMMAND LINE TO COPY THE HTML DOCUMENTATION TO THE GFORGE SERVER  (from the build directory)
28
#