Remove file(GLOB ...) usage from CMakeLists.txt (#4427)

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
Robert Fancsik
2021-01-12 10:47:36 +01:00
committed by GitHub
parent 5cef002ed6
commit 4399744588
9 changed files with 507 additions and 36 deletions
+35 -2
View File
@@ -28,14 +28,47 @@ set(COMPILE_FLAGS_MATH "${COMPILE_FLAGS_MATH} -Wno-strict-aliasing")
set(INCLUDE_MATH "${CMAKE_CURRENT_SOURCE_DIR}/include")
# Source directories
file(GLOB SOURCE_MATH *.c)
set(SOURCE_MATH
acos.c
acosh.c
asin.c
asinh.c
atan.c
atan2.c
atanh.c
cbrt.c
ceil.c
copysign.c
cosh.c
exp.c
expm1.c
fabs.c
finite.c
floor.c
fmod.c
isnan.c
log.c
log10.c
log1p.c
log2.c
nextafter.c
pow.c
scalbn.c
sinh.c
sqrt.c
tanh.c
trig.c
)
# Amalgamated JerryScript source/header build.
# The process will create the following files:
# * jerryscript-math.c
# * math.h
if(ENABLE_AMALGAM)
file(GLOB HEADER_MATH *.h)
set(HEADER_MATH
include/math.h
jerry-math-internal.h
)
set(AMALGAM_MATH_C "${CMAKE_BINARY_DIR}/amalgam/jerryscript-math.c")
set(AMALGAM_MATH_H "${CMAKE_BINARY_DIR}/amalgam/math.h")