2022-11-05 13:58:44 +01: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
|
|
|
|
common/fibers.cpp
|
|
|
|
common/host_memory.cpp
|
|
|
|
common/param_package.cpp
|
2022-12-25 07:12:57 +01:00
|
|
|
common/range_map.cpp
|
2022-11-05 13:58:44 +01:00
|
|
|
common/ring_buffer.cpp
|
2022-12-23 02:13:19 +01:00
|
|
|
common/scratch_buffer.cpp
|
2022-11-05 13:58:44 +01:00
|
|
|
common/unique_function.cpp
|
|
|
|
core/core_timing.cpp
|
|
|
|
core/internal_network/network.cpp
|
2022-11-30 06:29:32 +01:00
|
|
|
precompiled_headers.h
|
2022-11-05 13:58:44 +01:00
|
|
|
video_core/buffer_base.cpp
|
|
|
|
input_common/calibration_configuration_job.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
create_target_directory_groups(tests)
|
|
|
|
|
|
|
|
target_link_libraries(tests PRIVATE common core input_common)
|
2023-01-23 01:43:49 +01:00
|
|
|
target_link_libraries(tests PRIVATE ${PLATFORM_LIBRARIES} Catch2::Catch2WithMain Threads::Threads)
|
2022-11-05 13:58:44 +01:00
|
|
|
|
|
|
|
add_test(NAME tests COMMAND tests)
|
2022-11-30 06:29:32 +01:00
|
|
|
|
|
|
|
if (YUZU_USE_PRECOMPILED_HEADERS)
|
|
|
|
target_precompile_headers(tests PRIVATE precompiled_headers.h)
|
|
|
|
endif()
|