This repository has been archived by the owner on Aug 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
95 lines (83 loc) · 2.65 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# PROJECT PROPERTIES
project(FNELEM-GPU)
# MAKE PROPERTIES
cmake_minimum_required(VERSION 3.10)
set(CMAKE_CXX_STANDARD 14)
# TEST HELP SOURCES
set(FNELEM_TEST_HELP_FILES
test/math/force_cuda_cpu.cpp
)
# CUDA SOURCES
set(FNELEM_CUDA
fnelem/math/matrix_inversion_cuda.cu
main.cu
)
# ANALYSIS LIBRARY
set(FNELEM_ANALYSIS
fnelem/analysis/static_analysis.cpp
)
# MATH LIBRARY
set(FNELEM_MATH
fnelem/math/fematrix.cpp
fnelem/math/fematrix_utils.cpp
fnelem/math/matrix_inversion_cpu.cpp
)
# MODEL BASE LIBRARY
set(FNELEM_MODEL_BASE
fnelem/model/base/model.cpp
fnelem/model/base/model_component.cpp
)
# MODEL NODE LIBRARY
set(FNELEM_MODEL_NODES
${FNELEM_MATH}
${FNELEM_MODEL_BASE}
fnelem/model/nodes/node.cpp
)
# MODEL ELEMENT LIBRARY
set(FNELEM_MODEL_ELEMENTS
${FNELEM_MATH}
${FNELEM_MODEL_BASE}
${FNELEM_MODEL_NODES}
fnelem/model/elements/element.cpp
fnelem/model/elements/membrane.cpp
)
# MODEL RESTRAINTS LIBRARY
set(FNELEM_MODEL_RESTRAINTS
${FNELEM_MATH}
${FNELEM_MODEL_BASE}
${FNELEM_MODEL_NODES}
fnelem/model/restraints/restraint.cpp
fnelem/model/restraints/restraint_node.cpp
)
# MODEL LOADS LIBRARY
set(FNELEM_MODEL_LOADS
${FNELEM_MATH}
${FNELEM_MODEL_BASE}
${FNELEM_MODEL_NODES}
${FNELEM_MODEL_ELEMENTS}
fnelem/model/loads/load.cpp
fnelem/model/loads/load_membrane_distributed.cpp
fnelem/model/loads/load_node.cpp
fnelem/model/loads/load_pattern.cpp
fnelem/model/loads/load_pattern_constant.cpp
)
# ALL LIBRARIES
set(FNELEM
${FNELEM_ANALYSIS}
${FNELEM_MATH}
${FNELEM_MODEL_BASE}
${FNELEM_MODEL_NODES}
${FNELEM_MODEL_ELEMENTS}
${FNELEM_MODEL_RESTRAINTS}
${FNELEM_MODEL_LOADS}
)
# DEFINE TESTS
add_executable(TEST-ALL test/test_suite.cpp ${FNELEM} ${FNELEM_TEST_HELP_FILES})
add_executable(TEST-ANALYSIS test/analysis/__analysis__.cpp ${FNELEM} ${FNELEM_TEST_HELP_FILES})
add_executable(TEST-BASE test/model/base/__base__.cpp ${FNELEM})
add_executable(TEST-CUDA test/test_cuda.cpp ${FNELEM_CUDA})
add_executable(TEST-ELEMENTS test/model/elements/__elements__.cpp ${FNELEM_MODEL_ELEMENTS})
add_executable(TEST-FEMATRIX test/math/__math__.cpp ${FNELEM_MATH})
add_executable(TEST-LOADS test/model/loads/__loads__.cpp ${FNELEM_MODEL_LOADS})
add_executable(TEST-NODES test/model/nodes/__nodes__.cpp ${FNELEM_MODEL_NODES})
add_executable(TEST-RESTRAINTS test/model/restraints/__restraints__.cpp ${FNELEM_MODEL_RESTRAINTS})