mirror of
https://github.com/vanilla-wiiu/vanilla.git
synced 2025-01-22 08:11:47 -05:00
31 lines
564 B
CMake
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
|
|
)
|