mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 14:33:04 +08:00
Change-Id: I7de16b230685201b0f91b227f17713c3cd49d497 Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
30 lines
696 B
CMake
30 lines
696 B
CMake
#
|
|
# Copyright (C) 2019-2020 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
|
|
set(L0_SRCS_TOOLS_METRICS
|
|
)
|
|
|
|
list(APPEND L0_SRCS_TOOLS_METRICS
|
|
${CMAKE_CURRENT_SOURCE_DIR}/metric.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/metric_enumeration_imp.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/metric_streamer_imp.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/metric_query_imp.cpp)
|
|
|
|
if(UNIX)
|
|
add_subdirectory(linux)
|
|
else()
|
|
add_subdirectory(windows)
|
|
endif()
|
|
|
|
target_sources(${L0_STATIC_LIB_NAME}
|
|
PRIVATE
|
|
${L0_SRCS_TOOLS_METRICS}
|
|
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
|
)
|
|
|
|
# Make our source files visible to parent
|
|
set_property(GLOBAL PROPERTY L0_SRCS_TOOLS_METRICS ${L0_SRCS_TOOLS_METRICS})
|