2018-02-05 11:22:11 +01:00
|
|
|
# Copyright (c) 2018, Intel Corporation
|
2017-12-21 00:45:38 +01:00
|
|
|
#
|
|
|
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
# copy of this software and associated documentation files (the "Software"),
|
|
|
|
# to deal in the Software without restriction, including without limitation
|
|
|
|
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
|
|
# and/or sell copies of the Software, and to permit persons to whom the
|
|
|
|
# Software is furnished to do so, subject to the following conditions:
|
|
|
|
#
|
|
|
|
# The above copyright notice and this permission notice shall be included
|
|
|
|
# in all copies or substantial portions of the Software.
|
|
|
|
#
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
|
|
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
|
|
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
|
|
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
|
|
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
|
|
# OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
|
|
|
|
file(GLOB_RECURSE SHARING_ENABLE_CPPS enable*.cpp)
|
|
|
|
add_library (${SHARINGS_ENABLE_LIB_NAME} OBJECT ${SHARING_ENABLE_CPPS})
|
|
|
|
set_target_properties (${SHARINGS_ENABLE_LIB_NAME} PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
2017-12-21 09:25:11 +01:00
|
|
|
set_target_properties (${SHARINGS_ENABLE_LIB_NAME} PROPERTIES FOLDER "opencl runtime")
|
2017-12-21 00:45:38 +01:00
|
|
|
|
|
|
|
target_include_directories(${SHARINGS_ENABLE_LIB_NAME} PRIVATE
|
|
|
|
${GMM_SOURCE_DIR}/inc/common
|
2018-02-05 11:22:11 +01:00
|
|
|
${KHRONOS_HEADERS_DIR}
|
2018-08-27 16:30:40 +02:00
|
|
|
${KHRONOS_GL_HEADERS_DIR}
|
2018-02-05 11:22:11 +01:00
|
|
|
${UMKM_SHAREDDATA_INCLUDE_PATHS}
|
|
|
|
${IGDRCL__IGC_INCLUDE_DIR}
|
2017-12-21 00:45:38 +01:00
|
|
|
${THIRD_PARTY_DIR}
|
|
|
|
)
|
|
|
|
|
2018-02-05 11:22:11 +01:00
|
|
|
set(RUNTIME_SRCS_SHARINGS
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/sharing.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/sharing.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/sharing_factory.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/sharing_factory.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/sharing_factory.inl
|
2017-12-21 00:45:38 +01:00
|
|
|
)
|
2018-02-27 14:47:36 +01:00
|
|
|
target_sources(${NEO_STATIC_LIB_NAME} PRIVATE ${RUNTIME_SRCS_SHARINGS})
|
2018-03-07 19:49:20 +01:00
|
|
|
set_property(GLOBAL PROPERTY RUNTIME_SRCS_SHARINGS ${RUNTIME_SRCS_SHARINGS})
|
|
|
|
|
2018-02-27 14:47:36 +01:00
|
|
|
|
2018-02-05 11:22:11 +01:00
|
|
|
if(WIN32)
|
2018-03-06 14:50:30 +01:00
|
|
|
target_include_directories(${SHARINGS_ENABLE_LIB_NAME} PRIVATE ${IGDRCL_SOURCE_DIR}/runtime/os_interface/windows)
|
2018-02-05 11:22:11 +01:00
|
|
|
else()
|
2018-03-06 14:50:30 +01:00
|
|
|
target_include_directories(${SHARINGS_ENABLE_LIB_NAME} PRIVATE ${IGDRCL_SOURCE_DIR}/runtime/os_interface/linux)
|
2018-02-05 11:22:11 +01:00
|
|
|
endif()
|
2017-12-21 00:45:38 +01:00
|
|
|
|
2018-02-27 14:47:36 +01:00
|
|
|
add_subdirectories()
|
2018-03-01 11:59:54 +01:00
|
|
|
|
|
|
|
create_project_source_tree(${SHARINGS_ENABLE_LIB_NAME} ${IGDRCL_SOURCE_DIR}/runtime)
|
2018-03-23 15:55:13 +01:00
|
|
|
set(MSVC_DEF_ADDITIONAL_EXPORTS ${MSVC_DEF_ADDITIONAL_EXPORTS} PARENT_SCOPE)
|