mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Enable hello_world_opencl on Linux
Change-Id: Iab15b9d40ce8aa3d05dfc33e43a0bdda2d426cd0 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
0dbcac46bd
commit
5a7eefac92
@ -4,7 +4,7 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" AND WIN32)
|
||||
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
|
||||
set(OPENCL_BLACK_BOX_TEST_PROJECT_FOLDER "opencl runtime/black_box_tests")
|
||||
set(TEST_NAME hello_world_opencl)
|
||||
|
||||
@ -18,6 +18,18 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" AND WIN32)
|
||||
)
|
||||
|
||||
add_dependencies(${TEST_NAME} ${NEO_DYNAMIC_LIB_NAME})
|
||||
target_link_libraries(${TEST_NAME} PUBLIC ${NEO_DYNAMIC_LIB_NAME})
|
||||
set_target_properties(${TEST_NAME} PROPERTIES FOLDER ${OPENCL_BLACK_BOX_TEST_PROJECT_FOLDER})
|
||||
|
||||
if(UNIX)
|
||||
find_package(OpenCL QUIET)
|
||||
|
||||
if(NOT ${OpenCL_FOUND})
|
||||
message(STATUS "Failed to find OpenCL package")
|
||||
set_target_properties(${TEST_NAME} PROPERTIES EXCLUDE_FROM_ALL TRUE)
|
||||
else()
|
||||
target_link_libraries(${TEST_NAME} PUBLIC ${OpenCL_LIBRARIES})
|
||||
endif()
|
||||
else()
|
||||
target_link_libraries(${TEST_NAME} PUBLIC ${NEO_DYNAMIC_LIB_NAME})
|
||||
endif()
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user