Commit 3b1e580b authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

new CMakeLists file for demos

parent 3f64696e
...@@ -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(elliptImplicit src/elliptImplicit.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" ${ch_source}) add_executable("cahn_hilliard" ${cahn_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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment