2024-10-04 19:25:42 -04:00
|
|
|
find_package(SDL2 REQUIRED)
|
2024-10-10 19:32:12 -04:00
|
|
|
#find_package(SDL2_ttf REQUIRED)
|
2024-10-21 19:52:50 -04:00
|
|
|
find_package(FFmpeg REQUIRED COMPONENTS avformat avcodec avutil avfilter swscale)
|
2024-10-04 19:25:42 -04:00
|
|
|
|
|
|
|
add_executable(vanilla-pi
|
2024-10-21 19:52:50 -04:00
|
|
|
drm.c
|
2024-10-04 19:25:42 -04:00
|
|
|
main.c
|
|
|
|
)
|
|
|
|
|
2024-10-16 18:05:47 -04:00
|
|
|
install(TARGETS vanilla-pi)
|
|
|
|
|
2024-10-04 19:25:42 -04:00
|
|
|
target_include_directories(vanilla-pi PRIVATE
|
|
|
|
"${CMAKE_SOURCE_DIR}/lib"
|
2024-10-21 19:52:50 -04:00
|
|
|
|
|
|
|
# xf86drm.h needs this
|
|
|
|
/usr/include/libdrm
|
2024-10-04 19:25:42 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(vanilla-pi PRIVATE
|
|
|
|
SDL2::SDL2
|
2024-10-10 19:32:12 -04:00
|
|
|
# SDL2_ttf::SDL2_ttf
|
2024-10-04 19:25:42 -04:00
|
|
|
vanilla
|
2024-10-21 19:52:50 -04:00
|
|
|
FFmpeg::avfilter
|
2024-10-10 19:32:12 -04:00
|
|
|
FFmpeg::avformat
|
|
|
|
FFmpeg::avcodec
|
|
|
|
FFmpeg::avutil
|
2024-10-21 19:52:50 -04:00
|
|
|
FFmpeg::swscale
|
|
|
|
|
|
|
|
drm
|
2024-10-10 19:32:12 -04:00
|
|
|
)
|