vanilla/rpi/CMakeLists.txt
2024-11-04 20:31:43 -08:00

31 lines
564 B
CMake

find_package(SDL2 REQUIRED)
#find_package(SDL2_ttf REQUIRED)
find_package(FFmpeg REQUIRED COMPONENTS avformat avcodec avutil avfilter swscale)
add_executable(vanilla-pi
drm.c
main.c
)
install(TARGETS vanilla-pi)
target_include_directories(vanilla-pi PRIVATE
"${CMAKE_SOURCE_DIR}/lib"
# xf86drm.h needs this
/usr/include/libdrm
)
target_link_libraries(vanilla-pi PRIVATE
SDL2::SDL2
# SDL2_ttf::SDL2_ttf
vanilla
FFmpeg::avfilter
FFmpeg::avformat
FFmpeg::avcodec
FFmpeg::avutil
FFmpeg::swscale
drm
m
)