/alps/ufodecode

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/ufodecode
10 by Matthias Vogelgesang
Add documentation and split CMakeLists
1
cmake_minimum_required(VERSION 2.8)
2
3
find_package(Doxygen)
4
5
# --- Create Doxygen source documentation by typing `make doc`
6
if(DOXYGEN_FOUND)
7
    configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
8
9
    # add 'ALL after 'doc' to create documentation, whenever you type make
10
    add_custom_target(doc
11
        ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
12
        WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
13
        COMMENT "Generating API documentation with Doxygen" VERBATIM
14
        )
15
endif(DOXYGEN_FOUND)