6429ef1b60
- https://github.com/ROCm/hip-tests/pull/194 - https://github.com/ROCm/hip-tests/pull/36 - https://github.com/ROCm/hip-tests/pull/44 - https://github.com/ROCm/hip-tests/pull/47 - https://github.com/ROCm/hip-tests/pull/62 - https://github.com/ROCm/hip-tests/pull/63 - https://github.com/ROCm/hip-tests/pull/64 - https://github.com/ROCm/hip-tests/pull/65 - https://github.com/ROCm/hip-tests/pull/66 - https://github.com/ROCm/hip-tests/pull/67 - https://github.com/ROCm/hip-tests/pull/68 - https://github.com/ROCm/hip-tests/pull/69 - https://github.com/ROCm/hip-tests/pull/142 - https://github.com/ROCm/hip-tests/pull/196 - https://github.com/ROCm/hip-tests/pull/238 Change-Id: I74f7fef76d7d536b1cf89dad3e527c92d1cd21b5
30 라인
927 B
CMake
30 라인
927 B
CMake
set(TEST_SRC
|
|
hipGLGetDevices.cc
|
|
hipGraphicsGLRegisterBuffer.cc
|
|
hipGraphicsGLRegisterImage.cc
|
|
hipGraphicsMapResources.cc
|
|
hipGraphicsSubResourceGetMappedArray.cc
|
|
hipGraphicsResourceGetMappedPointer.cc
|
|
hipGraphicsUnmapResources.cc
|
|
hipGraphicsUnregisterResource.cc
|
|
)
|
|
|
|
find_package(OpenGL COMPONENTS OpenGL EGL)
|
|
message(STATUS "OpenGL_FOUND: ${OpenGL_FOUND}")
|
|
if(NOT OpenGL_FOUND)
|
|
message(STATUS "OpenGL not found, OpenGL interop tests not enabled.")
|
|
return()
|
|
endif()
|
|
|
|
find_package(GLUT)
|
|
message(STATUS "GLUT_FOUND: ${GLUT_FOUND}")
|
|
if(NOT GLUT_FOUND)
|
|
message(STATUS "GLUT not found, OpenGL interop tests not enabled.")
|
|
return()
|
|
endif()
|
|
|
|
hip_add_exe_to_target(NAME GLInteropTest
|
|
TEST_SRC ${TEST_SRC}
|
|
TEST_TARGET_NAME build_tests
|
|
COMPILE_OPTIONS -std=c++17)
|
|
target_link_libraries(GLInteropTest OpenGL::GL OpenGL::EGL GLUT::GLUT) |