Squashed 'external/yuv2rgb/' content from commit ee78934c8
git-subtree-dir: external/yuv2rgb git-subtree-split: ee78934c8d542e8402bcb6eef7259217a6f859bc
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
cmake_minimum_required (VERSION 2.6)
|
||||
project (yuv_rgb)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror -Wall -Wextra -pedantic -std=c99")
|
||||
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic -std=c99")
|
||||
|
||||
set(USE_FFMPEG FALSE CACHE BOOL "Enable ffmpeg")
|
||||
if(USE_FFMPEG)
|
||||
add_definitions(-DUSE_FFMPEG=1)
|
||||
endif(USE_FFMPEG)
|
||||
|
||||
set(USE_IPP FALSE CACHE BOOL "Enable IPP")
|
||||
if(USE_IPP)
|
||||
set(IPP_ROOT /opt/intel CACHE PATH "IPP install path")
|
||||
|
||||
include_directories(${IPP_ROOT}/ipp/include)
|
||||
link_directories(${IPP_ROOT}/ipp/lib/intel64)
|
||||
add_definitions(-DUSE_IPP=1)
|
||||
endif(USE_IPP)
|
||||
|
||||
include_directories ("${PROJECT_SOURCE_DIR}")
|
||||
add_executable(test_yuv_rgb test_yuv_rgb.c yuv_rgb.c)
|
||||
|
||||
if(USE_FFMPEG)
|
||||
target_link_libraries(test_yuv_rgb swscale)
|
||||
endif(USE_FFMPEG)
|
||||
|
||||
if(USE_IPP)
|
||||
target_link_libraries(test_yuv_rgb ippcc)
|
||||
endif(USE_IPP)
|
||||
|
||||
Reference in New Issue
Block a user