Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
amdis
Commits
3b1e580b
Commit
3b1e580b
authored
Mar 20, 2012
by
Praetorius, Simon
Browse files
new CMakeLists file for demos
parent
3f64696e
Changes
1
Hide whitespace changes
Inline
Side-by-side
demo/CMakeLists.txt
View file @
3b1e580b
...
@@ -10,40 +10,79 @@ if(AMDIS_FOUND)
...
@@ -10,40 +10,79 @@ if(AMDIS_FOUND)
SET
(
BASIS_LIBS
${
AMDIS_LIBRARIES
}
)
SET
(
BASIS_LIBS
${
AMDIS_LIBRARIES
}
)
endif
(
AMDIS_FOUND
)
endif
(
AMDIS_FOUND
)
# find tools-directory
find_path
(
TOOLS_DIR NAMES
"baseProblem"
"diffuseDomain"
DOC
"path to tools directory in AMDiS-trunk dir"
NO_DEFAULT_PATH
)
if
(
TOOLS_DIR
)
if
(
NOT EXISTS
${
TOOLS_DIR
}
/diffuseDomain/Helpers.h OR NOT EXISTS
${
TOOLS_DIR
}
/baseProblems/BaseProblem.h
)
message
(
FATAL_ERROR
"wrong tools directory! Directory must contain the subdirectories 'diffuseDomain' and 'baseProblems'"
)
endif
()
else
()
message
(
FATAL_ERROR
"no tools-directory specified!"
)
endif
(
TOOLS_DIR
)
# file(GLOB sources src/*.cc)
# foreach(s ${sources})
# get_filename_component(swe ${s} NAME_WE)
# add_executable(${swe} ${s})
# target_link_libraries(${swe} ${BASIS_LIBS})
# install(TARGETS ${swe}
# RUNTIME DESTINATION bin )
# endforeach(s)
set
(
TOOLS_DIR /opt/amdis_trunk/tools
)
include_directories
(
${
TOOLS_DIR
}
/diffuseDomain
)
include_directories
(
${
TOOLS_DIR
}
/diffuseDomain
)
include_directories
(
${
TOOLS_DIR
}
/baseProblems
)
include_directories
(
${
TOOLS_DIR
}
/baseProblems
)
set
(
ch_source src/cahn_hilliard
.cc
set
(
ball src/ball
.cc
)
${
TOOLS_DIR
}
/baseProblems/CahnHilliard
.cc
)
set
(
bunny src/bunny
.cc
)
set
(
cahn_hilliard src/cahn_hilliard.cc
${
TOOLS_DIR
}
/baseProblems/CahnHilliard.cc
)
set
(
ellipt
Implicit
src/ellipt
Implicit
.cc
)
set
(
ellipt src/ellipt.cc
)
set
(
elliptBase src/elliptBaseProblem.cc
)
set
(
elliptBase src/elliptBaseProblem.cc
)
set
(
elliptImplicit src/elliptImplicit.cc
)
set
(
heat src/heat.cc
)
set
(
neumann src/neumann.cc
)
set
(
nonlin src/nonlin.cc
)
set
(
parametric src/parametric.cc
)
set
(
periodic src/periodic.cc
)
set
(
sphere src/sphere.cc
)
set
(
torus src/torus.cc
)
set
(
vecellipt src/vecellipt.cc
)
set
(
vecheat src/vecheat.cc
)
add_executable
(
"ball"
${
ball
}
)
target_link_libraries
(
"ball"
${
BASIS_LIBS
}
)
set
(
roberto src/newmodel_s.cc
)
add_executable
(
"bunny"
${
bunny
}
)
target_link_libraries
(
"bunny"
${
BASIS_LIBS
}
)
add_executable
(
"cahn_hilliard"
${
c
h_source
}
)
add_executable
(
"cahn_hilliard"
${
c
ahn_hilliard
}
)
target_link_libraries
(
"cahn_hilliard"
${
BASIS_LIBS
}
)
target_link_libraries
(
"cahn_hilliard"
${
BASIS_LIBS
}
)
# Problem von Robert
add_executable
(
"ellipt"
${
ellipt
}
)
add_executable
(
"roberto"
${
roberto
}
)
target_link_libraries
(
"ellipt"
${
BASIS_LIBS
}
)
target_link_libraries
(
"roberto"
${
BASIS_LIBS
}
)
add_executable
(
"elliptBase"
${
elliptBase
}
)
target_link_libraries
(
"elliptBase"
${
BASIS_LIBS
}
)
add_executable
(
"elliptImplicit"
${
elliptImplicit
}
)
add_executable
(
"elliptImplicit"
${
elliptImplicit
}
)
target_link_libraries
(
"elliptImplicit"
${
BASIS_LIBS
}
)
target_link_libraries
(
"elliptImplicit"
${
BASIS_LIBS
}
)
add_executable
(
"elliptBase"
${
elliptBase
}
)
add_executable
(
"heat"
${
heat
}
)
target_link_libraries
(
"elliptBase"
${
BASIS_LIBS
}
)
target_link_libraries
(
"heat"
${
BASIS_LIBS
}
)
add_executable
(
"neumann"
${
neumann
}
)
target_link_libraries
(
"neumann"
${
BASIS_LIBS
}
)
add_executable
(
"nonlin"
${
nonlin
}
)
target_link_libraries
(
"nonlin"
${
BASIS_LIBS
}
)
add_executable
(
"parametric"
${
parametric
}
)
target_link_libraries
(
"parametric"
${
BASIS_LIBS
}
)
add_executable
(
"periodic"
${
periodic
}
)
target_link_libraries
(
"periodic"
${
BASIS_LIBS
}
)
add_executable
(
"sphere"
${
sphere
}
)
target_link_libraries
(
"sphere"
${
BASIS_LIBS
}
)
add_executable
(
"torus"
${
torus
}
)
target_link_libraries
(
"torus"
${
BASIS_LIBS
}
)
add_executable
(
"vecellipt"
${
vecellipt
}
)
target_link_libraries
(
"vecellipt"
${
BASIS_LIBS
}
)
add_executable
(
"vecheat"
${
vecheat
}
)
target_link_libraries
(
"vecheat"
${
BASIS_LIBS
}
)
#create the output dir
#create the output dir
# file(MAKE_DIRECTORY output)
# file(MAKE_DIRECTORY output)
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment