2022-11-05 08:58:44 -04:00
|
|
|
# SPDX-FileCopyrightText: 2018 yuzu Emulator Project
|
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
add_executable(tests
|
|
|
|
common/bit_field.cpp
|
|
|
|
common/cityhash.cpp
|
2023-03-26 05:16:08 -04:00
|
|
|
common/container_hash.cpp
|
2022-11-05 08:58:44 -04:00
|
|
|
common/fibers.cpp
|
|
|
|
common/host_memory.cpp
|
|
|
|
common/param_package.cpp
|
2022-12-25 01:12:57 -05:00
|
|
|
common/range_map.cpp
|
2022-11-05 08:58:44 -04:00
|
|
|
common/ring_buffer.cpp
|
2022-12-22 20:13:19 -05:00
|
|
|
common/scratch_buffer.cpp
|
2022-11-05 08:58:44 -04:00
|
|
|
common/unique_function.cpp
|
|
|
|
core/core_timing.cpp
|
|
|
|
core/internal_network/network.cpp
|
2022-11-30 00:29:32 -05:00
|
|
|
precompiled_headers.h
|
2023-04-23 08:05:41 -04:00
|
|
|
video_core/memory_tracker.cpp
|
2022-11-05 08:58:44 -04:00
|
|
|
input_common/calibration_configuration_job.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
create_target_directory_groups(tests)
|
|
|
|
|
|
|
|
target_link_libraries(tests PRIVATE common core input_common)
|
2023-01-22 19:43:49 -05:00
|
|
|
target_link_libraries(tests PRIVATE ${PLATFORM_LIBRARIES} Catch2::Catch2WithMain Threads::Threads)
|
2022-11-05 08:58:44 -04:00
|
|
|
|
|
|
|
add_test(NAME tests COMMAND tests)
|
2022-11-30 00:29:32 -05:00
|
|
|
|
|
|
|
if (YUZU_USE_PRECOMPILED_HEADERS)
|
|
|
|
target_precompile_headers(tests PRIVATE precompiled_headers.h)
|
|
|
|
endif()
|