Enable parallel tests.
[hoomd-blue.git] / share / hoomd / plugin_template_evaluators_ext / doc / CMakeLists.txt
blobff858f35bbfa07feb5fc086b716dc13d671cde68
1 find_package(Doxygen)
2 if (DOXYGEN_FOUND)
4 set(DOXYGEN_PREDEFINED ${DOXYGEN_PREDEFINED} " \"ENABLE_CUDA=1\" \\
5     \"NVCC=1\" ")
7 # disable DOT in doxygen if dot is not found
8 if(DOXYGEN_DOT_PATH)
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
25                     DEPENDS
26                     ${SOURCE_FILES}
27                     ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in)
29 add_custom_target (${PROJECT_NAME}_doc ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/index.html)
31 endif (DOXYGEN_FOUND)