4 set(DOXYGEN_PREDEFINED ${DOXYGEN_PREDEFINED} " \"ENABLE_CUDA=1\" \\
7 # disable DOT in doxygen if dot is not found
9 set(DOXYGEN_HAVE_DOT "YES")
10 else(DOXYGEN_DOT_PATH)
11 set(DOXYGEN_HAVE_DOT "NO")
12 endif(DOXYGEN_DOT_PATH)
14 # configure the doxygen file
15 configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
17 file(GLOB SOURCE_FILES "${${PROJECT_NAME}_SOURCE_DIR}/cppmodule/*.cu"
18 "${${PROJECT_NAME}_SOURCE_DIR}/cppmodule/*.cuh"
19 "${${PROJECT_NAME}_SOURCE_DIR}/cppmodule/*.cc"
20 "${${PROJECT_NAME}_SOURCE_DIR}/cppmodule/*.h"
21 "${${PROJECT_NAME}_SOURCE_DIR}/pymodule/*.py")
23 add_custom_command (OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/index.html
24 COMMAND ${DOXYGEN} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
27 ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in)
29 add_custom_target (${PROJECT_NAME}_doc ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/index.html)