# MVGAL sample benchmarks
# SPDX-License-Identifier: MIT

if(NOT TARGET mvgal_core)
    return()
endif()

add_executable(cross_vendor_compute cross_vendor_compute.c)
target_include_directories(cross_vendor_compute PRIVATE
    ${CMAKE_SOURCE_DIR}/include
)
target_link_libraries(cross_vendor_compute PRIVATE mvgal_core m pthread)
target_compile_options(cross_vendor_compute PRIVATE -fno-lto)
set_target_properties(cross_vendor_compute PROPERTIES LINK_FLAGS "-fno-lto")

install(TARGETS cross_vendor_compute DESTINATION ${CMAKE_INSTALL_BINDIR} OPTIONAL)
