2020-04-18 10:34:02 +01:00
|
|
|
if ((NOT "A32" IN_LIST DYNARMIC_FRONTENDS) OR (NOT "A64" IN_LIST DYNARMIC_FRONTENDS))
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2017-11-26 11:39:27 +00:00
|
|
|
add_executable(dynarmic_tests
|
2018-01-06 21:15:25 +00:00
|
|
|
A32/test_arm_disassembler.cpp
|
2019-07-28 20:54:46 +01:00
|
|
|
A32/test_arm_instructions.cpp
|
2018-01-06 21:15:25 +00:00
|
|
|
A32/test_thumb_instructions.cpp
|
2018-01-27 22:36:55 +00:00
|
|
|
A32/testenv.h
|
2018-01-06 21:15:25 +00:00
|
|
|
A64/a64.cpp
|
2018-01-13 18:03:34 +00:00
|
|
|
A64/testenv.h
|
2018-07-23 20:22:38 +01:00
|
|
|
cpu_info.cpp
|
2020-07-05 18:21:12 +01:00
|
|
|
decoder_tests.cpp
|
2018-06-29 19:34:46 +01:00
|
|
|
fp/FPToFixed.cpp
|
2018-08-16 10:50:28 +01:00
|
|
|
fp/FPValue.cpp
|
2018-06-29 18:52:48 +01:00
|
|
|
fp/mantissa_util_tests.cpp
|
2018-06-27 13:52:20 +01:00
|
|
|
fp/unpacked_tests.cpp
|
2016-07-04 10:22:11 +01:00
|
|
|
main.cpp
|
2017-11-26 11:39:27 +00:00
|
|
|
rand_int.h
|
|
|
|
)
|
2016-07-04 10:22:11 +01:00
|
|
|
|
2018-01-13 18:04:19 +00:00
|
|
|
if (DYNARMIC_TESTS_USE_UNICORN)
|
|
|
|
target_sources(dynarmic_tests PRIVATE
|
2019-04-20 03:43:38 +01:00
|
|
|
A32/fuzz_arm.cpp
|
|
|
|
A32/fuzz_thumb.cpp
|
2018-01-13 18:04:19 +00:00
|
|
|
A64/fuzz_with_unicorn.cpp
|
2020-03-24 21:47:28 +00:00
|
|
|
A64/misaligned_page_table.cpp
|
2018-01-17 20:00:42 +00:00
|
|
|
A64/verify_unicorn.cpp
|
2018-08-11 18:17:41 +01:00
|
|
|
fuzz_util.cpp
|
|
|
|
fuzz_util.h
|
2018-08-11 11:39:53 +01:00
|
|
|
unicorn_emu/a32_unicorn.cpp
|
|
|
|
unicorn_emu/a32_unicorn.h
|
|
|
|
unicorn_emu/a64_unicorn.cpp
|
|
|
|
unicorn_emu/a64_unicorn.h
|
2018-01-13 18:04:19 +00:00
|
|
|
)
|
2018-04-18 15:20:12 +01:00
|
|
|
target_link_libraries(dynarmic_tests PRIVATE Unicorn::Unicorn)
|
2018-01-13 18:04:19 +00:00
|
|
|
endif()
|
|
|
|
|
2018-06-27 15:07:28 +01:00
|
|
|
add_executable(dynarmic_print_info
|
|
|
|
print_info.cpp
|
|
|
|
)
|
|
|
|
|
2016-08-25 18:22:08 +01:00
|
|
|
include(CreateDirectoryGroups)
|
2017-11-26 11:39:27 +00:00
|
|
|
create_target_directory_groups(dynarmic_tests)
|
2018-06-27 15:07:28 +01:00
|
|
|
create_target_directory_groups(dynarmic_print_info)
|
2016-08-25 18:22:08 +01:00
|
|
|
|
2020-04-04 00:59:27 +01:00
|
|
|
target_link_libraries(dynarmic_tests PRIVATE dynarmic boost catch fmt mp xbyak)
|
2016-12-19 00:41:21 +00:00
|
|
|
target_include_directories(dynarmic_tests PRIVATE . ../src)
|
2016-12-19 15:01:49 +00:00
|
|
|
target_compile_options(dynarmic_tests PRIVATE ${DYNARMIC_CXX_FLAGS})
|
2019-05-08 22:18:56 +01:00
|
|
|
target_compile_definitions(dynarmic_tests PRIVATE FMT_USE_USER_DEFINED_LITERALS=0)
|
2016-08-25 18:22:08 +01:00
|
|
|
|
2020-04-04 00:59:27 +01:00
|
|
|
target_link_libraries(dynarmic_print_info PRIVATE dynarmic boost catch fmt mp)
|
2018-06-27 15:07:28 +01:00
|
|
|
target_include_directories(dynarmic_print_info PRIVATE . ../src)
|
|
|
|
target_compile_options(dynarmic_print_info PRIVATE ${DYNARMIC_CXX_FLAGS})
|
2019-05-08 22:18:56 +01:00
|
|
|
target_compile_definitions(dynarmic_print_info PRIVATE FMT_USE_USER_DEFINED_LITERALS=0)
|
2018-06-27 15:07:28 +01:00
|
|
|
|
2016-08-25 18:22:08 +01:00
|
|
|
add_test(dynarmic_tests dynarmic_tests)
|