CMakeLists.txt 1.29 KB
Newer Older
1
2
3
project("amdis_demo")
cmake_minimum_required(VERSION 2.8)

Thomas Witkowski's avatar
Thomas Witkowski committed
4
5
#find_package(AMDIS REQUIRED COMPONENTS umfpack )
find_package(AMDIS REQUIRED)
6

Thomas Witkowski's avatar
Thomas Witkowski committed
7
if(AMDIS_FOUND)
8
	message("amdis was found\n")
Thomas Witkowski's avatar
Thomas Witkowski committed
9
10
11
	include(${AMDIS_USE_FILE})
	SET(BASIS_LIBS ${AMDIS_LIBRARIES})
endif(AMDIS_FOUND)
12

Praetorius, Simon's avatar
Praetorius, Simon committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

# 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}/baseProblems)

set(ch_source src/cahn_hilliard.cc
	      ${TOOLS_DIR}/baseProblems/CahnHilliard.cc)

set(elliptImplicit src/elliptImplicit.cc)
set(elliptBase src/elliptBaseProblem.cc)

set(roberto src/newmodel_s.cc)

add_executable("cahn_hilliard" ${ch_source})
target_link_libraries("cahn_hilliard" ${BASIS_LIBS})

# Problem von Robert
add_executable("roberto" ${roberto})
target_link_libraries("roberto" ${BASIS_LIBS})

add_executable("elliptImplicit" ${elliptImplicit})
target_link_libraries("elliptImplicit" ${BASIS_LIBS})

add_executable("elliptBase" ${elliptBase})
target_link_libraries("elliptBase" ${BASIS_LIBS})
47
48

#create the output dir
Praetorius, Simon's avatar
Praetorius, Simon committed
49
# file(MAKE_DIRECTORY output)