mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-18 22:08:53 +08:00
cmake refactor
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
bdcc8aec72
commit
2b815ab605
@@ -773,14 +773,7 @@ else()
|
||||
set(NEO_EXTRA_LIBS dl pthread rt)
|
||||
endif()
|
||||
|
||||
add_subdirectory_unique(shared/source)
|
||||
add_subdirectory_unique(shared/generate_cpp_array)
|
||||
add_subdirectory_unique(shared/test/unit_test)
|
||||
|
||||
set(TOOLS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/shared/tools${BRANCH_DIR_SUFFIX}")
|
||||
if(EXISTS ${TOOLS_DIR})
|
||||
add_subdirectory_unique(${TOOLS_DIR})
|
||||
endif()
|
||||
add_subdirectory_unique(shared)
|
||||
|
||||
macro(generate_runtime_lib LIB_NAME MOCKABLE GENERATE_EXEC)
|
||||
set(NEO_STATIC_LIB_NAME ${LIB_NAME})
|
||||
|
||||
14
shared/CMakeLists.txt
Normal file
14
shared/CMakeLists.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
#
|
||||
# Copyright (C) 2021 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
add_subdirectory(source)
|
||||
add_subdirectory(generate_cpp_array)
|
||||
add_subdirectory(test/unit_test)
|
||||
set(TOOLS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/tools${BRANCH_DIR_SUFFIX}")
|
||||
if(EXISTS ${TOOLS_DIR} AND EXISTS ${TOOLS_DIR}/CMakeLists.txt)
|
||||
add_subdirectory(${TOOLS_DIR})
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user