1 2set(CCTEST_SRC 3 cctest.cc 4 gay-fixed.cc 5 gay-precision.cc 6 gay-shortest.cc 7 gay-shortest-single.cc 8 test-bignum.cc 9 test-bignum-dtoa.cc 10 test-conversions.cc 11 test-diy-fp.cc 12 test-dtoa.cc 13 test-fast-dtoa.cc 14 test-fixed-dtoa.cc 15 test-ieee.cc 16 test-strtod.cc 17) 18 19add_executable(cctest ${CCTEST_SRC}) 20target_link_libraries(cctest double-conversion) 21if(MSVC) 22 target_compile_options(cctest PRIVATE /bigobj) 23endif() 24 25add_test(NAME test_bignum 26 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} 27 COMMAND $<TARGET_FILE:cctest> test-bignum) 28 29add_test(NAME test_bignum_dtoa 30 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} 31 COMMAND $<TARGET_FILE:cctest> test-bignum-dtoa) 32 33add_test(NAME test_conversions 34 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} 35 COMMAND $<TARGET_FILE:cctest> test-conversions) 36add_test(NAME test_diy_fp 37 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} 38 COMMAND $<TARGET_FILE:cctest> test-diy-fp) 39add_test(NAME test_dtoa 40 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} 41 COMMAND $<TARGET_FILE:cctest> test-dtoa) 42add_test(NAME test_fast_dtoa 43 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} 44 COMMAND $<TARGET_FILE:cctest> test-fast-dtoa) 45add_test(NAME test_fixed_dtoa 46 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} 47 COMMAND $<TARGET_FILE:cctest> test-fixed-dtoa) 48add_test(NAME test_ieee 49 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} 50 COMMAND $<TARGET_FILE:cctest> test-ieee) 51add_test(NAME test_strtod 52 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} 53 COMMAND $<TARGET_FILE:cctest> test-strtod) 54