Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
c70ba861
Commit
c70ba861
authored
6 years ago
by
Bernd Flemisch
Committed by
Timo Koch
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[cmake] improve python script for creating CMakeLists.txt
parent
00bf8624
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1016
[cmake] automatically generate CMakeLists.txt files
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/util/create_cmakelists.py
+7
-2
7 additions, 2 deletions
bin/util/create_cmakelists.py
with
7 additions
and
2 deletions
bin/util/create_cmakelists.py
+
7
−
2
View file @
c70ba861
# 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
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment