Skip to content
Snippets Groups Projects
Commit 607e5e3b authored by Ansgar Burchardt's avatar Ansgar Burchardt Committed by ansgar
Browse files

Add partial CMake support (tests are still missing).

[[Imported from SVN: r12681]]
parent fd62cef0
No related branches found
No related tags found
No related merge requests found
project("dune-solvers" CXX)
cmake_minimum_required(VERSION 2.8.6)
find_package(dune-common)
list(APPEND CMAKE_MODULE_PATH ${dune-common_MODULE_PATH})
include(DuneMacros)
dune_project()
add_subdirectory("dune")
finalize_dune_project(GENERATE_CONFIG_H_CMAKE)
if(NOT @DUNE_MOD_NAME@_FOUND)
#compute installation prefix relative to this file
get_filename_component(_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_prefix "${_dir}/../../.." ABSOLUTE)
#import the target
#include("${_prefix}/lib/cmake/@DUNE_MOD_NAME@-targets.cmake")
#report other information
set(@DUNE_MOD_NAME@_PREFIX "${_prefix}")
set(@DUNE_MOD_NAME@_INCLUDE_DIRS "${_prefix}/include")
set(@DUNE_MOD_NAME@_CXX_FLAGS "@CMAKE_CXX_FLAGS@")
set(@DUNE_MOD_NAME@_CXX_FLAGS_DEBUG "@CMAKE_CXX_FLAGS_DEBUG@")
set(@DUNE_MOD_NAME@_CXX_FLAGS_MINSIZEREL "@CMAKE_CXX_FLAGS_MINSIZEREL@")
set(@DUNE_MOD_NAME@_CXX_FLAGS_RELEASE "@CMAKE_CXX_FLAGS_RELEASE@")
set(@DUNE_MOD_NAME@_CXX_FLAGS_RELWITHDEBINFO "@CMAKE_CXX_FLAGS_RELWITHDEBINFO@")
set(@DUNE_MOD_NAME@_DEPENDS "@DUNE_DEPENDS@")
set(@DUNE_MOD_NAME@_SUGGESTS "@DUNE_SUGGESTS@")
set(@DUNE_MOD_NAME@_MODULE_PATH "${_prefix}/@DUNE_INSTALL_MODULEDIR@")
endif(NOT @DUNE_MOD_NAME@_FOUND)
\ No newline at end of file
if(NOT @DUNE_MOD_NAME@_FOUND)
#compute installation prefix relative to this file
get_filename_component(_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_prefix "${_dir}/../../.." ABSOLUTE)
#import the target
#include("${_prefix}/lib/cmake/@DUNE_MOD_NAME@-targets.cmake")
#report other information
set(@DUNE_MOD_NAME@_PREFIX "${_prefix}")
set(@DUNE_MOD_NAME@_INCLUDE_DIRS "${_prefix}/include")
set(@DUNE_MOD_NAME@_CXX_FLAGS "@CMAKE_CXX_FLAGS@")
set(@DUNE_MOD_NAME@_CXX_FLAGS_DEBUG "@CMAKE_CXX_FLAGS_DEBUG@")
set(@DUNE_MOD_NAME@_CXX_FLAGS_MINSIZEREL "@CMAKE_CXX_FLAGS_MINSIZEREL@")
set(@DUNE_MOD_NAME@_CXX_FLAGS_RELEASE "@CMAKE_CXX_FLAGS_RELEASE@")
set(@DUNE_MOD_NAME@_CXX_FLAGS_RELWITHDEBINFO "@CMAKE_CXX_FLAGS_RELWITHDEBINFO@")
set(@DUNE_MOD_NAME@_DEPENDS "@DUNE_DEPENDS@")
set(@DUNE_MOD_NAME@_SUGGESTS "@DUNE_SUGGESTS@")
set(@DUNE_MOD_NAME@_MODULE_PATH "${_prefix}/@DUNE_INSTALL_MODULEDIR@")
endif(NOT @DUNE_MOD_NAME@_FOUND)
\ No newline at end of file
set(PACKAGE_VERSION "@DUNE_MOD_VERSION@")
if(NOT "${PACKAGE_FIND_VERSION}" VERSION_GREATER "@DUNE_MOD_VERSION@")
set (PACKAGE_VERSION_COMPATIBLE 1) # compatible with older
if ("${PACKAGE_FIND_VERSION}" VERSION_EQUAL "@DUNE_MOD_VERSION@")
set(PACKAGE_VERSION_EXACT 1) #exact match for this version
endif()
endif()
add_subdirectory("solvers")
add_subdirectory("common")
add_subdirectory("iterationsteps")
add_subdirectory("norms")
add_subdirectory("operators")
add_subdirectory("solvers")
add_subdirectory("transferoperators")
install(FILES
computeenergy.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dune/solvers)
install(FILES
arithmetic.hh
boxconstraint.hh
canignore.hh
genericvectortools.hh
numproc.hh
permutationmanager.hh
preconditioner.hh
staticmatrixtools.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dune/solvers/common)
install(FILES
amgstep.hh
blockgsstep.cc
blockgsstep.hh
cgstep.cc
cgstep.hh
istlseqilu0step.hh
iterationstep.hh
lineariterationstep.hh
linegsstep.cc
linegsstep.hh
minimalpolynomialextrapolationstep.hh
mmgstep.cc
mmgstep.hh
multigridstep.cc
multigridstep.hh
obstacletnnmgstep.hh
projectedblockgsstep.cc
projectedblockgsstep.hh
projectedlinegsstep.cc
projectedlinegsstep.hh
richardsonstep.hh
truncatedblockgsstep.hh
truncatedsaddlepointgsstep.hh
trustregiongsstep.cc
trustregiongsstep.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dune/solvers/iterationsteps)
install(FILES
blocknorm.hh
diagnorm.hh
energynorm.hh
fullnorm.hh
h1seminorm.hh
norm.hh
pnorm.hh
reorderedblocknorm.hh
sumnorm.hh
twonorm.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dune/solvers/norms)
install(FILES
lowrankoperator.hh
nulloperator.hh
sumoperator.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dune/solvers/operators)
install(FILES
cgsolver.cc
cgsolver.hh
iterativesolver.cc
iterativesolver.hh
loopsolver.cc
loopsolver.hh
quadraticipopt.hh
solver.hh
tcgsolver.cc
tcgsolver.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dune/solvers/solvers)
install(FILES
compressedmultigridtransfer.hh
densemultigridtransfer.hh
genericmultigridtransfer.hh
mandelobsrestrictor.cc
mandelobsrestrictor.hh
multigridtransfer.hh
obstaclerestrictor.hh
truncatedcompressedmgtransfer.cc
truncatedcompressedmgtransfer.hh
truncateddensemgtransfer.cc
truncateddensemgtransfer.hh
truncatedmgtransfer.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dune/solvers/transferoperators)
install(FILES
dune-solvers.m4
ipopt4.m4
DESTINATION share/aclocal)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment