Merge pull request #21 from ibstewart/cudalowlatencydemo-build

Fix cudalowlatencydemo demo build
pull/28/head
Paul Hindt 2022-04-27 17:32:11 -07:00 committed by GitHub
commit 89e73d8013
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 9 deletions

View File

@ -5,11 +5,9 @@
#if defined( AJAMac ) || defined( AJALinux )
#include <GL/glew.h>
//#include <GL/glxew.h>
#include <GL/glut.h>
#include <GL/gl.h>
#include <GL/glx.h>
//#include <GL/glu.h>
#else
#include <Windows.h>
#include <GL/glew.h>

View File

@ -9,8 +9,6 @@
#include <OpenGL/glu.h>
#else
#include <GL/glew.h>
//#include <glut.h>
//#include <glu.h>
#include <GL/gl.h>
#endif

View File

@ -4,11 +4,9 @@
#if defined( AJAMac ) || defined( AJALinux )
#include <GL/glew.h>
//#include <GL/glxew.h>
#include <GL/glut.h>
#include <GL/gl.h>
#include <GL/glx.h>
//#include <GL/glu.h>
#else
#include <Windows.h>
#include <GL/glew.h>

View File

@ -1,11 +1,13 @@
# NOTE: Ensure that the CUDA Toolkit v11.4 or later is installed and in your PATH.
# NOTE: Ensure that the CUDA Toolkit v11.1 or later is installed and in your PATH.
if (NOT CMAKE_SYSTEM_NAME STREQUAL "Linux")
aja_message(STATUS "skipping cudalowlatencydemo (requires Linux)")
return()
endif()
find_package(CUDA 11.2)
find_package(CUDA 11.1)
if (NOT CUDA_FOUND)
aja_message(STATUS "skipping cudalowlatencydemo (CUDA not found)")
message("skipping cudalowlatencydemo (CUDA not found)")
return()
endif()
set(OpenGL_GL_PREFERENCE LEGACY)
@ -111,6 +113,12 @@ if (AJA_INSTALL_SOURCES)
install(FILES CMakeLists.txt DESTINATION ${CMAKE_INSTALL_PREFIX}/ajaapps/crossplatform/demoapps/cudalowlatencydemo)
endif()
install(TARGETS cudalowlatencydemo
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
FRAMEWORK DESTINATION ${CMAKE_INSTALL_LIBDIR})
if (AJA_CODE_SIGN)
aja_code_sign(cudalowlatencydemo)
endif()