Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dune-fem-dg
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
Service Desk
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
dune-fem
dune-fem-dg
Commits
1a8ff68f
Commit
1a8ff68f
authored
10 years ago
by
Stefan Girke
Browse files
Options
Downloads
Patches
Plain Diff
[bugfix] test targets are not build correctly for subfolders (bug in dune-common)
parent
b989b8e8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+15
-0
15 additions, 0 deletions
CMakeLists.txt
with
15 additions
and
0 deletions
CMakeLists.txt
+
15
−
0
View file @
1a8ff68f
...
...
@@ -15,9 +15,11 @@ list(APPEND CMAKE_MODULE_PATH ${dune-common_MODULE_PATH}
#include the dune macros
include
(
DuneMacros
)
# start a dune project with information from dune.module
dune_project
()
# $Id: duneproject 5842 2010-01-20 18:48:34Z joe $
# we need the module file to be able to build via dunecontrol
set
(
EXTRA_DIST dune.module
)
...
...
@@ -26,6 +28,7 @@ if( BUILD_DOCS)
# TODO: set up documentation tree automatically
#SUBDIRS += doc
endif
(
BUILD_DOCS
)
# don't follow the full GNU-standard
# we need automake 1.5
set
(
AUTOMAKE_OPTIONS foreign 1.5
)
...
...
@@ -35,6 +38,7 @@ set(DISTCHECK_CONFIGURE_FLAGS --with-dune-common=${DUNE_COMMON_ROOT} --with-dun
# include $(top_srcdir)/am/top-rules
# include not needed for CMake
# include $(top_srcdir)/am/global-rules
foreach
(
i
${
SUBDIRS
}
)
if
(
${
i
}
STREQUAL
"test"
)
set
(
opt EXCLUDE_FROM_ALL
)
...
...
@@ -43,6 +47,17 @@ foreach(i ${SUBDIRS})
unset
(
opt
)
endforeach
(
i
${
SUBDIRS
}
)
# small hack since test directories are not set correctly in dune-common-scripts
# (...or not the way we want it to be...) see FindFiles.cmake
# we want sub folders in test directories
set
(
ADD_TEST_DIR dune/fem-dg/test
)
set
(
_dirs advdiff euler navierstokes poisson dataio
)
foreach
(
_dir
${
_dirs
}
)
set
(
_dir
"
${
ADD_TEST_DIR
}
/
${
_dir
}
"
)
set_property
(
DIRECTORY
${
_dir
}
PROPERTY TEST_INCLUDE_FILE
${
CMAKE_BINARY_DIR
}
/
${
_dir
}
/BuildTests.cmake
)
endforeach
(
_dir
${
_dirs
}
)
add_subdirectory
(
cmake/modules
)
# finalize the dune project, e.g., generate config.h etc.
finalize_dune_project
(
GENERATE_CONFIG_H_CMAKE
)
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