mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +08:00
23 lines
739 B
CMake
23 lines
739 B
CMake
#
|
|
# Copyright (C) 2018-2021 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
|
|
set(IGDRCL_SRCS_tests_gtpin
|
|
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
|
${CMAKE_CURRENT_SOURCE_DIR}/gtpin_tests.cpp
|
|
)
|
|
macro(macro_for_each_core_type)
|
|
foreach(BRANCH_DIR ${BRANCH_DIR_LIST})
|
|
if(EXISTS ${NEO_SOURCE_DIR}/opencl/source${BRANCH_DIR}${CORE_TYPE_LOWER}/gtpin_setup_${CORE_TYPE_LOWER}.cpp)
|
|
list(APPEND IGDRCL_SRCS_tests_gtpin ${NEO_SOURCE_DIR}/opencl/source${BRANCH_DIR}${CORE_TYPE_LOWER}/gtpin_setup_${CORE_TYPE_LOWER}.cpp)
|
|
endif()
|
|
endforeach()
|
|
endmacro()
|
|
apply_macro_for_each_core_type("TESTED")
|
|
if(NOT DISABLED_GTPIN_SUPPORT)
|
|
target_sources(igdrcl_tests PRIVATE ${IGDRCL_SRCS_tests_gtpin})
|
|
endif()
|
|
add_subdirectories()
|