Skip to content

Commit

Permalink
cmake: enable cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Jan 25, 2017
1 parent e212cff commit fbbe37b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 1,5 @@
set(MODULE QtAV)
# TODO: translations, rpath, rc template,egl, dygl, uchardet, d3d11, cuda
# TODO: translations, rpath, rc template,egl, dygl, uchardet, d3d11

INCLUDE(CheckCCompilerFlag)
INCLUDE(CheckIncludeFile)
Expand Down Expand Up @@ -456,6 456,16 @@ if(HAVE_VAAPI)
list(APPEND EXTRA_LIBS va X11)
endif()

if(NOT APPLE)
list(APPEND EXTRA_DEFS -DQTAV_HAVE_CUDA=1)
list(APPEND EXTRA_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/cuda)
list(APPEND SOURCES
cuda/cuda_api.cpp
codec/video/SurfaceInteropCUDA.cpp
codec/video/VideoDecoderCUDA.cpp
)
endif()

list(APPEND HEADERS ${SDK_HEADERS} ${SDK_PRIVATE_HEADERS}
AVPlayerPrivate.h
AVDemuxThread.h
Expand Down

0 comments on commit fbbe37b

Please sign in to comment.