-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
30 lines (17 loc) · 783 Bytes
/
CMakeLists.txt
File metadata and controls
30 lines (17 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
cmake_minimum_required(VERSION 3.10)
project(interop)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_FLAGS "-fcoroutines" )
# Set the cmake Module path
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
find_package(GPAC REQUIRED)
include_directories(SYSTEM ${GPAC_INCLUDE_DIRS})
find_package(FFmpeg REQUIRED COMPONENTS AVCODEC AVFORMAT AVUTIL SWSCALE)
include_directories(SYSTEM ${FFMPEG_INCLUDE_DIRS})
add_subdirectory(lib/pybind11)
set(SOURCE_DIR "vfs/video")
include_directories(${SOURCE_DIR})
set(SOURCES "${SOURCE_DIR}/mp4.cpp")
pybind11_add_module(interop ${SOURCES} "${SOURCE_DIR}/interop.cpp")
target_link_libraries(interop PRIVATE ${GPAC_LIBRARIES} ${FFMPEG_LIBRARIES})