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
d95cb3ca
Commit
d95cb3ca
authored
8 years ago
by
Stefan Girke
Browse files
Options
Downloads
Patches
Plain Diff
add qtcreator helper stuff
parent
45a8e4c3
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
CMakeLists.txt
+5
-0
5 additions, 0 deletions
CMakeLists.txt
cmake/modules/DuneFemDgMacros.cmake
+31
-0
31 additions, 0 deletions
cmake/modules/DuneFemDgMacros.cmake
with
38 additions
and
0 deletions
.gitignore
+
2
−
0
View file @
d95cb3ca
...
...
@@ -54,3 +54,5 @@ cmake/modules/petsc
config_collected.h.cmake
dune-fem-dg-config-version.cmake
dune-fem-dg-config.cmake
*.idea
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
5
−
0
View file @
d95cb3ca
...
...
@@ -17,6 +17,7 @@ include(DuneMacros)
# start a dune project with information from dune.module
dune_project
()
include
(
DuneMPI
)
#add sub directories
...
...
@@ -26,5 +27,9 @@ dune_add_subdirs( dune lib doc cmake/modules )
#set( _dirnew dune/fem-dg/examples/advdiff_test )
#set_property(DIRECTORY ${_dirnew} PROPERTY TEST_INCLUDE_FILE ${CMAKE_BINARY_DIR}/${_dirnew}/BuildTests.cmake)
make_dependent_modules_sys_included
()
add_header_listing
()
# 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.
cmake/modules/DuneFemDgMacros.cmake
+
31
−
0
View file @
d95cb3ca
...
...
@@ -93,5 +93,36 @@ endfunction()
set
(
FEMDG_FAST_TESTBUILD ON CACHE BOOL
"only build the most important tests when calling 'make test'"
)
macro
(
add_header_listing
)
# header
file
(
GLOB_RECURSE header
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/*.hh"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/*.h "
${
CMAKE_CURRENT_SOURCE_DIR
}
/*.ui
""
)
set
(
COMMON_HEADER
${
header
}
${
DUNE_HEADERS
}
)
# add header of dependent modules for header listing
foreach
(
_mod
${
ALL_DEPENDENCIES
}
)
file
(
GLOB_RECURSE HEADER_LIST
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../
${
_mod
}
/*.hh"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../
${
_mod
}
/*.h"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../
${
_mod
}
/*.ui"
)
list
(
APPEND COMMON_HEADER
${
HEADER_LIST
}
)
endforeach
(
_mod DEPENDENCIES
)
set_source_files_properties
(
${
COMMON_HEADER
}
PROPERTIES HEADER_FILE_ONLY 1
)
add_custom_target
(
common_header SOURCES
${
COMMON_HEADER
}
)
#needed at least one official target for finding header files in source code
dune_add_test
(
NAME _h SOURCES
${
COMMON_HEADER
}
)
set_target_properties
(
_h PROPERTIES LINKER_LANGUAGE CXX
)
endmacro
(
add_header_listing
)
macro
(
make_dependent_modules_sys_included
)
#disable most warnings from dependent modules
foreach
(
_mod
${
ALL_DEPENDENCIES
}
)
if
(
${
_mod
}
_INCLUDE_DIRS
)
foreach
(
_idir
${${
_mod
}
_INCLUDE_DIRS
}
)
add_definitions
(
"-isystem
${
_idir
}
"
)
endforeach
(
_idir
)
endif
(
${
_mod
}
_INCLUDE_DIRS
)
endforeach
(
_mod DEPENDENCIES
)
endmacro
(
make_dependent_modules_sys_included
)
include
(
Codegen
)
include
(
TargetDistclean
)
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