From c70ba861b6ab8aa3254d4e111e737f30be6fbe1f Mon Sep 17 00:00:00 2001 From: Bernd Flemisch <bernd@iws.uni-stuttgart.de> Date: Tue, 19 Jun 2018 14:53:47 +0200 Subject: [PATCH] [cmake] improve python script for creating CMakeLists.txt --- bin/util/create_cmakelists.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/util/create_cmakelists.py b/bin/util/create_cmakelists.py index 141334def2..e1d1e4873b 100644 --- a/bin/util/create_cmakelists.py +++ b/bin/util/create_cmakelists.py @@ -1,6 +1,10 @@ +# Create files CMakeLists.txt for the current folder and all subfolders. +# Should be run from the folder `dumux` that contains the header files, namely, +# one level below the top dumux folder: +# python ../bin/create_cmakelists.py. + # Import the os module, for the os.walk function import os -import re # Set the directory you want to start from rootDir = '.' @@ -30,4 +34,5 @@ for folderName, subFolders, files in os.walk(rootDir): cmakelists.write("%s\n" % fileName) cmakelists.write("DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dumux/%s)\n" % folderName[2:]) - cmakelists.close() + + cmakelists.close() -- GitLab