38 lines
1.2 KiB
CMake
38 lines
1.2 KiB
CMake
project(ffcpp)
|
|
|
|
find_package(FFMPEG REQUIRED)
|
|
include_directories(${FFMPEG_INCLUDE_DIR})
|
|
link_directories(${FFMPEG_LIBRARY_DIRS})
|
|
|
|
if(NOT FFMPEG_FOUND)
|
|
message(FATAL_ERROR "FFMpeg not found")
|
|
endif()
|
|
|
|
set(SOURCE_FILES MediaFile.cpp
|
|
../include/ffcpp/MediaFile.h
|
|
ffcpp.cpp
|
|
../include/ffcpp/ffcpp.h
|
|
Stream.cpp
|
|
../include/ffcpp/Stream.h
|
|
Codec.cpp
|
|
../include/ffcpp/Codec.h
|
|
Packet.cpp
|
|
../include/ffcpp/Packet.h
|
|
Frame.cpp
|
|
../include/ffcpp/Frame.h
|
|
FifoQueue.cpp
|
|
../include/ffcpp/FifoQueue.h
|
|
Scaler.cpp
|
|
../include/ffcpp/Scaler.h
|
|
Resampler.cpp
|
|
../include/ffcpp/Resampler.h
|
|
Player.cpp
|
|
../include/ffcpp/Player.h
|
|
../include/ffcpp/TSQueue.h
|
|
../include/ffcpp/atomicops.h
|
|
../include/ffcpp/readerwriterqueue.h)
|
|
|
|
add_library(ffcpp ${SOURCE_FILES})
|
|
target_link_libraries(ffcpp ${FFMPEG_LIBRARIES})
|
|
|