1 # cmake <http://www.cmake.org> build file for python-gammu
2 # Copyright (c) 2007 - 2010 Michal Cihar
3 # vim: expandtab sw=4 ts=4 sts=4:
5 project (python-gammu C)
7 add_subdirectory(gammu)
10 include(CMakeTests.txt)
13 find_program(EPYDOC_EXECUTABLE NAMES epydoc
14 DOC "Epydoc tool for generating Python API documentation <http://epydoc.sourceforge.net/>")
15 if (EPYDOC_EXECUTABLE)
16 add_custom_target (pydoc ${PYTHON_EXECUTABLE} ${EPYDOC_EXECUTABLE} --verbose --name python-gammu --url http://wammu.eu/python-gammu/ gammu
17 DEPENDS ${PYFILES} ${PYTHON_GAMMU_SRC}
18 COMMENT "Generating Python documentation")
19 endif (EPYDOC_EXECUTABLE)