#
# Copyright (C) 2018-2022 Intel Corporation
#
# SPDX-License-Identifier: MIT
#

set(IGDRCL_SRCS_tests_os_interface_windows
    ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
    ${CMAKE_CURRENT_SOURCE_DIR}/device_os_tests.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/driver_info_tests.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/file_logger_win_tests.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/mock_kmdaf_listener.h
    ${CMAKE_CURRENT_SOURCE_DIR}/mock_os_time_win.h
    ${CMAKE_CURRENT_SOURCE_DIR}/mock_performance_counters_win.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/mock_performance_counters_win.h
    ${CMAKE_CURRENT_SOURCE_DIR}/os_time_win_tests.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/performance_counters_win_tests.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/registry_reader_tests.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/registry_reader_tests.h
    ${CMAKE_CURRENT_SOURCE_DIR}/wddm_kmdaf_listener_tests.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/wddm_memory_manager_tests.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/wddm_memory_manager_tests.h
    ${CMAKE_CURRENT_SOURCE_DIR}/wddm_memory_manager_allocate_in_device_pool_tests.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/wddm_residency_controller_tests.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/wddm_residency_handler_tests.cpp
)

if(WIN32)
  file(GLOB IGDRCL_SRC_tests_wddm_interface "${CMAKE_CURRENT_SOURCE_DIR}/wddm2[0-9]_tests\.cpp")
  target_sources(igdrcl_tests PRIVATE
                 ${IGDRCL_SRCS_tests_os_interface_windows}
                 ${IGDRCL_SRC_tests_wddm_interface}
  )
endif()

add_subdirectories()
