X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=CMakeLists.txt;fp=CMakeLists.txt;h=24da84d53a9608418adcbe0ccd65ed40a2891bd6;hp=f36912d80298df580ba80b9b99963b4a05e0ba80;hb=e5136ce5407ceffd388f69c1582a6b0d6167f61d;hpb=91d2d1f1be6615a02f8d2ac0b90607fb7a3dd770 diff --git a/CMakeLists.txt b/CMakeLists.txt index f36912d..24da84d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -142,27 +142,7 @@ add_custom_target(dist WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) if ( DOCUMENTATION ) - find_package ( Doxygen REQUIRED) - - # Copy doxy.config.in - set(top_srcdir ${CMAKE_SOURCE_DIR}) - configure_file(${CMAKE_SOURCE_DIR}/doc/Doxyfile.in ${CMAKE_BINARY_DIR}/Doxyfile ) - configure_file(${CMAKE_SOURCE_DIR}/doc/Doxyfile.xml.in ${CMAKE_BINARY_DIR}/Doxyfile.xml ) - - # Run doxygen - add_custom_command( - OUTPUT ${CMAKE_BINARY_DIR}/doc/html/index.html - COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/doc - COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_BINARY_DIR}/Doxyfile - COMMENT "Generating API documentation" - DEPENDS ${c_headers};${c_sources};${cpp_sources};${cpp_headers} - ) - - add_custom_target( - docs ALL - COMMENT "Documentation target docs" - DEPENDS ${CMAKE_BINARY_DIR}/doc/html/index.html - ) + add_subdirectory(doc) endif ( DOCUMENTATION ) add_subdirectory(src)