CMakeLists.txt
936 Bytes
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
if (LIBPGMATH_DIR)
# If pgmath library is found, it can be used for constant folding.
find_library(LIBPGMATH pgmath PATHS ${LIBPGMATH_DIR})
if(LIBPGMATH)
add_compile_definitions(LINK_WITH_LIBPGMATH)
message(STATUS "Found libpgmath: ${LIBPGMATH}")
else()
message(STATUS "Libpgmath not found in: ${LIBPGMATH_DIR}")
endif()
endif()
add_flang_library(FortranEvaluate
call.cpp
characteristics.cpp
check-expression.cpp
common.cpp
complex.cpp
constant.cpp
expression.cpp
fold.cpp
fold-character.cpp
fold-complex.cpp
fold-designator.cpp
fold-integer.cpp
fold-logical.cpp
fold-real.cpp
formatting.cpp
host.cpp
initial-image.cpp
integer.cpp
intrinsics.cpp
intrinsics-library.cpp
logical.cpp
real.cpp
shape.cpp
static-data.cpp
tools.cpp
type.cpp
variable.cpp
LINK_LIBS
FortranCommon
FortranDecimal
FortranParser
${LIBPGMATH}
DEPENDS
acc_gen
omp_gen
)