Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-gdt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
ag-ohlberger
dune-community
dune-gdt
Commits
994bc725
Commit
994bc725
authored
11 years ago
by
Dr. Felix Tobias Schindler
Browse files
Options
Downloads
Patches
Plain Diff
[cmake] changes due to dune-stuff
parent
f09e3160
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+7
-8
7 additions, 8 deletions
CMakeLists.txt
with
7 additions
and
8 deletions
CMakeLists.txt
+
7
−
8
View file @
994bc725
...
@@ -27,23 +27,21 @@ set( CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_CURRENT_SOURCE_
...
@@ -27,23 +27,21 @@ set( CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_CURRENT_SOURCE_
include
(
DuneUtils
)
include
(
DuneUtils
)
include
(
GridUtils
)
include
(
GridUtils
)
# adjust CXX_FLAGS
set
(
CMAKE_CXX_FLAGS_RELEASE
"
${
CMAKE_CXX_FLAGS_RELEASE
}
-O3"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
-O3 -g3 -ggdb"
)
# needs to come first to include correct config.h
# needs to come first to include correct config.h
include_dir
(
${
dune-gdt_SOURCE_DIR
}
)
include_dir
(
${
dune-gdt_SOURCE_DIR
}
)
include_dir
(
${
dune-gdt_BINARY_DIR
}
)
include_dir
(
${
dune-gdt_BINARY_DIR
}
)
# user settings
set
(
ENABLE_MPI
"0"
CACHE STRING
"set to 1 to enable mpi"
)
# we need eigen
# we need eigen
if
(
NOT EIGEN_FOUND
)
if
(
NOT EIGEN_FOUND
)
message
(
FATAL_ERROR
"eigen3 not found, set PKG_CONFIGK_PATH to include eigen3.pc!"
)
message
(
FATAL_ERROR
"eigen3 not found, set PKG_CONFIGK_PATH to include eigen3.pc!"
)
endif
(
NOT EIGEN_FOUND
)
endif
(
NOT EIGEN_FOUND
)
add_definitions
(
${
CUSTOM_FLAGS
}
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake/cmake_config.h.in
${
CMAKE_CURRENT_BINARY_DIR
}
/cmake_config.h
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake/cmake_config.h.in
${
CMAKE_CURRENT_BINARY_DIR
}
/cmake_config.h
)
add_definitions
(
-DHAVE_CMAKE_CONFIG
)
add_dune_modules
(
add_dune_modules
(
stuff
stuff
...
@@ -64,9 +62,10 @@ set_source_files_properties( ${COMMON_HEADER} PROPERTIES HEADER_FILE_ONLY 1 )
...
@@ -64,9 +62,10 @@ set_source_files_properties( ${COMMON_HEADER} PROPERTIES HEADER_FILE_ONLY 1 )
# libs
# libs
set
(
COMMON_LIBS
set
(
COMMON_LIBS
${
DUNE_LIBS
}
${
DUNE_LIBS
}
${
DUNE_DEFAULT_LIBS
}
${
PARALIBS
}
${
PARALIBS
}
${
CCGNU_LIBRARIES
}
${
CCGNU_LIBRARIES
}
"boost_system"
"boost_filesystem"
${
BOOST_SYSTEM_LIBS
}
${
GRIDLIBS
}
${
GRIDLIBS
}
${
FASPLIB
}
${
FASPLIB
}
)
)
...
...
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