forked from miloyip/dtoa-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
51 lines (46 loc) · 1.3 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
cmake_minimum_required(VERSION 3.1.0)
# Joins arguments and places the results in ${result_var}.
function(join result_var)
set(result )
foreach (arg ${ARGN})
set(result "${result}${arg}")
endforeach ()
set(${result_var} "${result}" PARENT_SCOPE)
endfunction()
if (NOT CMAKE_BUILD_TYPE)
join(doc "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or "
"CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.")
set(CMAKE_BUILD_TYPE Release CACHE STRING ${doc})
endif ()
project(DTOA_BENCHMARK C CXX)
set(CMAKE_CXX_STANDARD 17)
add_executable(
dtoa-benchmark
src/main.cpp
# Tests:
src/ryutest.cpp
src/doubleconvtest.cpp
src/fmttest.cpp
src/dtoa_puff.cpp
src/fpconvtest.cpp
src/gaytest.cpp
src/grisu2btest.cpp
#src/milotest.cpp
src/null.cpp
src/ostringstream.cpp
#src/ostrstream.cpp
src/sprintf.cpp
# Libraries:
src/fpconv/fpconv.c
src/gay/dtoa.c
src/gay/g_fmt.c
src/grisu/grisu2b_59_56.c
src/double-conversion/bignum-dtoa.cc
src/double-conversion/bignum.cc
src/double-conversion/cached-powers.cc
src/double-conversion/diy-fp.cc
src/double-conversion/double-conversion.cc
src/double-conversion/fast-dtoa.cc
src/double-conversion/fixed-dtoa.cc
src/double-conversion/strtod.cc)
target_include_directories(dtoa-benchmark PRIVATE src)