also link to module source code

This commit is contained in:
Radovan Bast 2015-06-04 20:49:48 +02:00
parent de92f5ced0
commit b5a6748626
3 changed files with 4 additions and 3 deletions

View File

@ -60,6 +60,7 @@ def main():
file_name = ntpath.basename(f)
output.append('\n\n%s' % file_name)
output.append('-'*len(file_name))
output.append('`[Source code] <https://github.com/scisoft/autocmake/blob/master/modules/%s>`_' % file_name)
with open(f, 'r') as s:
s_out = extract_rst_blobs(s.read())
if s_out == '':

View File

@ -9,14 +9,14 @@
#
# CMAKE_Fortran_MODULE_DIRECTORY (${PROJECT_BINARY_DIR}/include/fortran)
#
# Example ``autocmake.cfg`` entry::
# Example autocmake.cfg entry::
#
# [fc]
# source: https://github.com/scisoft/autocmake/raw/master/modules/fc.cmake
# docopt: --fc=<FC> Fortran compiler [default: gfortran].
# --extra-fc-flags=<EXTRA_FCFLAGS> Extra Fortran compiler flags [default: ''].
# export: 'FC=%s' % arguments['--fc']
# define: '-DEXTRA_FCFLAGS=%s' % arguments['--extra-fc-flags']
# define: '-DEXTRA_FCFLAGS="%s"' % arguments['--extra-fc-flags']
enable_language(Fortran)

View File

@ -6,7 +6,7 @@ source: https://github.com/scisoft/autocmake/raw/master/modules/fc.cmake
docopt: --fc=<FC> Fortran compiler [default: gfortran].
--extra-fc-flags=<EXTRA_FCFLAGS> Extra Fortran compiler flags [default: ''].
export: 'FC=%s' % arguments['--fc']
define: '-DEXTRA_FCFLAGS=%s' % arguments['--extra-fc-flags']
define: '-DEXTRA_FCFLAGS="%s"' % arguments['--extra-fc-flags']
[compilers]
source: https://github.com/scisoft/autocmake/raw/master/compilers/GNU.Fortran.cmake