mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-10-25 22:28:17 +08:00
Update EGL samples (NB EGLSync_CUDAEvent_Interop link error in debug)
This commit is contained in:
17
cmake/Modules/FindEGL.cmake
Normal file
17
cmake/Modules/FindEGL.cmake
Normal file
@@ -0,0 +1,17 @@
|
||||
find_path(EGL_INCLUDE_DIR
|
||||
NAMES EGL/egl.h
|
||||
PATHS /usr/include /usr/local/include
|
||||
)
|
||||
|
||||
find_library(EGL_LIBRARY
|
||||
NAMES EGL
|
||||
PATHS /usr/lib /usr/local/lib
|
||||
)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(EGL DEFAULT_MSG EGL_LIBRARY EGL_INCLUDE_DIR)
|
||||
|
||||
if(EGL_FOUND)
|
||||
set(EGL_LIBRARIES ${EGL_LIBRARY})
|
||||
set(EGL_INCLUDE_DIRS ${EGL_INCLUDE_DIR})
|
||||
endif()
|
||||
Reference in New Issue
Block a user