CMakeLists.txt 879 B

123456789101112131415161718192021222324252627282930
  1. # SPDX-FileCopyrightText: 2018 yuzu Emulator Project
  2. # SPDX-License-Identifier: GPL-2.0-or-later
  3. add_executable(tests
  4. common/bit_field.cpp
  5. common/cityhash.cpp
  6. common/fibers.cpp
  7. common/host_memory.cpp
  8. common/param_package.cpp
  9. common/range_map.cpp
  10. common/ring_buffer.cpp
  11. common/scratch_buffer.cpp
  12. common/unique_function.cpp
  13. core/core_timing.cpp
  14. core/internal_network/network.cpp
  15. precompiled_headers.h
  16. video_core/buffer_base.cpp
  17. input_common/calibration_configuration_job.cpp
  18. )
  19. create_target_directory_groups(tests)
  20. target_link_libraries(tests PRIVATE common core input_common)
  21. target_link_libraries(tests PRIVATE ${PLATFORM_LIBRARIES} Catch2::Catch2WithMain Threads::Threads)
  22. add_test(NAME tests COMMAND tests)
  23. if (YUZU_USE_PRECOMPILED_HEADERS)
  24. target_precompile_headers(tests PRIVATE precompiled_headers.h)
  25. endif()