mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00

These targets should be built on demand when another target requires this or explicitly requested. This applies to STATIC and OBJECT libraries. Change-Id: Ia0eb4e803b09c0ce594fd348ad53c10cdf5b3a9f Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
24 lines
670 B
CMake
24 lines
670 B
CMake
#
|
|
# Copyright (C) 2017-2019 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
|
|
add_library(elflib STATIC EXCLUDE_FROM_ALL
|
|
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
|
${CMAKE_CURRENT_SOURCE_DIR}/reader.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/reader.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/types.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/writer.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/writer.h
|
|
)
|
|
|
|
create_project_source_tree(elflib)
|
|
|
|
target_include_directories(elflib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
target_include_directories(elflib PRIVATE ${IGDRCL_SOURCE_DIR})
|
|
|
|
set_target_properties(elflib PROPERTIES FOLDER "elflib")
|
|
|
|
set_target_properties(elflib PROPERTIES POSITION_INDEPENDENT_CODE ON)
|