aboutsummaryrefslogtreecommitdiff
path: root/test_conformance/math_brute_force/CMakeLists.txt
blob: a221f05add4fb0e4ed3cc9912e1252f9f5a0dcdb (plain)
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
set(MODULE_NAME BRUTEFORCE)

set(${MODULE_NAME}_SOURCES
    binary_double.cpp
    binary_float.cpp
    binary_i_double.cpp
    binary_i_float.cpp
    binary_operator_double.cpp
    binary_operator_float.cpp
    binary_two_results_i_double.cpp
    binary_two_results_i_float.cpp
    common.cpp
    common.h
    function_list.cpp
    function_list.h
    i_unary_double.cpp
    i_unary_float.cpp
    macro_binary_double.cpp
    macro_binary_float.cpp
    macro_unary_double.cpp
    macro_unary_float.cpp
    mad_double.cpp
    mad_float.cpp
    main.cpp
    reference_math.cpp
    reference_math.h
    sleep.cpp
    sleep.h
    ternary_double.cpp
    ternary_float.cpp
    test_functions.h
    unary_double.cpp
    unary_float.cpp
    unary_two_results_double.cpp
    unary_two_results_float.cpp
    unary_two_results_i_double.cpp
    unary_two_results_i_float.cpp
    unary_u_double.cpp
    unary_u_float.cpp
    utility.cpp
    utility.h
)

# math_brute_force compiles cleanly with -Wall (except for a few remaining
# warnings), but other tests not (yet); so enable -Wall locally.
set_gnulike_module_compile_flags("-Wall -Wno-strict-aliasing -Wno-unknown-pragmas")

add_cxx_flag_if_supported(-ffp-contract=off)

include(../CMakeCommon.txt)