Merge pull request #21 from ibstewart/cudalowlatencydemo-build
Fix cudalowlatencydemo demo buildpull/28/head
commit
89e73d8013
|
@ -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>
|
||||
|
|
|
@ -9,8 +9,6 @@
|
|||
#include <OpenGL/glu.h>
|
||||
#else
|
||||
#include <GL/glew.h>
|
||||
//#include <glut.h>
|
||||
//#include <glu.h>
|
||||
#include <GL/gl.h>
|
||||
#endif
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue