-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
52 lines (46 loc) · 1.24 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
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
47
48
49
50
51
52
project(PotatoLib)
cmake_minimum_required(VERSION 2.8)
set(USE_SUPERLU 1)
set(CMAKE_BUILD_TYPE Debug)
if(${USE_SUPERLU})
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DARMA_USE_SUPERLU" )
endif(${USE_SUPERLU})
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG")
include_directories(/usr/local/include/)
set(SOURCES
cell.cpp
main.cpp
tree.cpp
point.cpp
fmm.cpp
fmm2d.cpp
tree2d.cpp
cell2d.cpp
kernel_laplace_point_2d.cpp
fmm_gmres_solver.cpp
kernel_laplace_constant_element_2d.cpp
fmm2d_ada.cpp
tree2d_ada.cpp
)
set(HEADERS
cell.h
element.h
point_element.h
kernel.h
tree.h
point.h
fmm.h
fmm2d.h
tree2d.h
cell2d.h
complex_t.h
kernel_laplace_point_2d.h
gmres.h
fmm_gmres_solver.h
kernel_laplace_constant_element_2d.h
constant_element_2d.h
fmm2d_ada.h
tree2d_ada.h
)
add_executable(${PROJECT_NAME} ${SOURCES} ${HEADERS})
target_link_libraries(${PROJECT_NAME} armadillo superlu m)