1
1
#!/usr/bin/python
2
2
3
-
4
3
#
5
4
# PCMSolver, an API for the Polarizable Continuum Model
6
5
# Copyright (C) 2017 Roberto Di Remigio, Luca Frediani and collaborators.
49
48
-h --help Show this screen.
50
49
"""
51
50
51
+
52
52
def glob_sources_cxx (dir_name ):
53
53
"""Create a list of C++ headers and sources to be used in a CMakeLists.txt file."""
54
54
headers = 'list(APPEND headers_list '
@@ -63,6 +63,7 @@ def glob_sources_cxx(dir_name):
63
63
+ '# List of sources\n ' + sources
64
64
return message
65
65
66
+
66
67
def glob_sources_c (dir_name ):
67
68
"""Create a list of C headers and sources to be used in a CMakeLists.txt file."""
68
69
headers = 'list(APPEND headers_list '
@@ -77,6 +78,7 @@ def glob_sources_c(dir_name):
77
78
+ '# List of sources\n ' + sources
78
79
return message
79
80
81
+
80
82
def glob_sources_fortran (dir_name ):
81
83
"""Create a list of Fortran sources to be used in a CMakeLists.txt file."""
82
84
types = ('*.f' , '*.F' , '*.f77' , '*.F77' , '*.f90' , '*.F90' )
@@ -90,6 +92,7 @@ def glob_sources_fortran(dir_name):
90
92
message = '# List of sources\n ' + sources
91
93
return message
92
94
95
+
93
96
try :
94
97
arguments = docopt .docopt (options , argv = None )
95
98
except docopt .DocoptExit :
@@ -99,7 +102,7 @@ def glob_sources_fortran(dir_name):
99
102
100
103
# Grab command-line arguments
101
104
libname = arguments ['--libname' ]
102
- lang = arguments ['--lang' ]
105
+ lang = arguments ['--lang' ]
103
106
104
107
root_directory = os .getcwd ()
105
108
dname = os .path .join (root_directory , libname )
0 commit comments