Skip to content
Snippets Groups Projects
Commit c70ba861 authored by Bernd Flemisch's avatar Bernd Flemisch Committed by Timo Koch
Browse files

[cmake] improve python script for creating CMakeLists.txt

parent 00bf8624
No related branches found
No related tags found
1 merge request!1016[cmake] automatically generate CMakeLists.txt files
# 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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment