2018-05-19 08:11:04 +08:00
|
|
|
|
2020-04-16 20:34:17 +08:00
|
|
|
add_flang_library(FortranEvaluate
|
2020-01-28 10:18:45 +08:00
|
|
|
call.cpp
|
|
|
|
characteristics.cpp
|
|
|
|
check-expression.cpp
|
|
|
|
common.cpp
|
|
|
|
complex.cpp
|
|
|
|
constant.cpp
|
|
|
|
expression.cpp
|
|
|
|
fold.cpp
|
|
|
|
fold-character.cpp
|
|
|
|
fold-complex.cpp
|
2020-06-19 04:28:43 +08:00
|
|
|
fold-designator.cpp
|
2020-01-28 10:18:45 +08:00
|
|
|
fold-integer.cpp
|
|
|
|
fold-logical.cpp
|
|
|
|
fold-real.cpp
|
|
|
|
formatting.cpp
|
|
|
|
host.cpp
|
|
|
|
integer.cpp
|
|
|
|
intrinsics.cpp
|
|
|
|
intrinsics-library.cpp
|
|
|
|
logical.cpp
|
|
|
|
real.cpp
|
|
|
|
shape.cpp
|
|
|
|
static-data.cpp
|
|
|
|
tools.cpp
|
|
|
|
type.cpp
|
|
|
|
variable.cpp
|
2020-02-26 07:22:14 +08:00
|
|
|
|
2020-04-16 20:34:17 +08:00
|
|
|
LINK_LIBS
|
2018-09-13 07:37:28 +08:00
|
|
|
FortranCommon
|
2019-08-17 02:12:18 +08:00
|
|
|
FortranDecimal
|
2020-04-22 03:27:35 +08:00
|
|
|
FortranSemantics
|
2019-01-19 07:53:11 +08:00
|
|
|
FortranParser
|
2018-09-13 07:37:28 +08:00
|
|
|
)
|
2019-03-22 18:14:10 +08:00
|
|
|
|
2019-03-28 01:13:46 +08:00
|
|
|
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)
|
|
|
|
target_link_libraries(FortranEvaluate ${LIBPGMATH})
|
|
|
|
message(STATUS "Found libpgmath: ${LIBPGMATH}")
|
|
|
|
else()
|
|
|
|
message(STATUS "Libpgmath not found in: ${LIBPGMATH_DIR}")
|
|
|
|
endif()
|
2019-03-22 18:14:10 +08:00
|
|
|
endif()
|