Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Lasse Hinrichsen-Bischoff
dune-common
Commits
906a68e6
Commit
906a68e6
authored
13 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
Added Lapack test. (Yes, we have to activate Fortran to find out the name mangling!)
[[Imported from SVN: r6597]]
parent
a98e95f7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+9
-1
9 additions, 1 deletion
CMakeLists.txt
config.h.cmake
+3
-0
3 additions, 0 deletions
config.h.cmake
dune/common/test/CMakeLists.txt
+1
-1
1 addition, 1 deletion
dune/common/test/CMakeLists.txt
with
13 additions
and
2 deletions
CMakeLists.txt
+
9
−
1
View file @
906a68e6
...
...
@@ -10,7 +10,7 @@ dune_module_information(${CMAKE_SOURCE_DIR})
set
(
ProjectName
"
${
DUNE_MODULE_NAME
}
"
)
set
(
ProjectVersion
"
${
DUNE_VERSION_STRING
}
"
)
set
(
ProjectMaintainerEmail
"
${
DUNE_MAINTAINER
}
"
)
project
(
${
ProjectName
}
C CXX
)
project
(
${
ProjectName
}
C CXX
Fortran
)
set
(
DUNE_COMMON_VERSION
"
${
DUNE_VERSION_STRING
}
"
)
set
(
DUNE_COMMON_VERSION_MAJOR
"
${
DUNE_VERSION_MAJOR
}
"
)
set
(
DUNE_COMMON_VERSION_MINOR
"
${
DUNE_VERSION_MINOR
}
"
)
...
...
@@ -46,6 +46,14 @@ find_package(Boost)
set
(
HAVE_BOOST BOOST_FOUND
)
find_package
(
SharedPtr
)
# search for lapack
find_package
(
LAPACK
)
set
(
HAVE_LAPACK LAPACK_FOUND
)
# make calling fortran routines from C/C++ possible
include
(
FortranCInterface
)
FortranCInterface_HEADER
(
FC.h MACRO_NAMESPACE
"FC_"
)
# actually write the config.h file to disk
configure_file
(
config.h.cmake
${
CMAKE_CURRENT_BINARY_DIR
}
/config.h
)
include_directories
(
"
${
CMAKE_CURRENT_BINARY_DIR
}
"
)
...
...
This diff is collapsed.
Click to expand it.
config.h.cmake
+
3
−
0
View file @
906a68e6
...
...
@@ -49,6 +49,7 @@
#cmakedefine HAVE_BOOST_SHARED_PTR_HPP 1
/* Define if you have LAPACK library. */
#cmakedefine HAVE_LAPACK 1
/* Define to 1 if SHARED_PTR_NAMESPACE::make_shared is usable */
#cmakedefine HAVE_MAKE_SHARED 1
...
...
@@ -88,3 +89,5 @@
/* Include allways usefull headers */
#include <dune/common/deprecated.hh>
#include <dune/common/unused.hh>
#include "FC.h"
#define FC_FUNC FC_GLOBAL_
This diff is collapsed.
Click to expand it.
dune/common/test/CMakeLists.txt
+
1
−
1
View file @
906a68e6
...
...
@@ -23,7 +23,7 @@ add_executable("fassigntest" fassigntest.cc)
target_link_libraries
(
"fassigntest"
"dunecommon"
)
add_executable
(
"fmatrixtest"
fmatrixtest.cc
)
target_link_libraries
(
"fmatrixtest"
"dunecommon"
)
target_link_libraries
(
"fmatrixtest"
"dunecommon"
${
LAPACK_LIBRARIES
}
)
add_executable
(
"fvectortest"
fvectortest.cc
)
add_executable
(
"gcdlcmtest"
gcdlcmtest.cc
)
...
...
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