mirror of
https://github.com/vanilla-wiiu/vanilla.git
synced 2025-01-22 08:11:47 -05:00
a5ef5fca7c
We use an SVG in the input dialog and it disappears if QtSvg isn't available. There's an argument that converting it to PNG is cleaner than requiring an SVG parsing library, but most people will probably have QtSvg?
48 lines
No EOL
1.1 KiB
CMake
48 lines
No EOL
1.1 KiB
CMake
find_package(Qt6 REQUIRED COMPONENTS Core Widgets Multimedia OpenGLWidgets Network Concurrent Svg)
|
|
find_package(SDL2 REQUIRED)
|
|
find_package(FFmpeg REQUIRED COMPONENTS avformat avcodec avutil avfilter)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
set(CMAKE_AUTOUIC ON)
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
add_executable(vanilla-gui
|
|
audiohandler.cpp
|
|
backend.cpp
|
|
backendinitdialog.cpp
|
|
gamepadhandler.cpp
|
|
keymap.cpp
|
|
inputconfigdialog.cpp
|
|
syncdialog.cpp
|
|
syncprogressdialog.cpp
|
|
main.cpp
|
|
mainwindow.cpp
|
|
resource.qrc
|
|
udpaddressdialog.cpp
|
|
videodecoder.cpp
|
|
viewer.cpp
|
|
)
|
|
|
|
target_link_libraries(vanilla-gui PRIVATE
|
|
Qt6::Core
|
|
Qt6::Widgets
|
|
Qt6::Network
|
|
Qt6::Multimedia
|
|
Qt6::OpenGLWidgets
|
|
Qt6::Concurrent
|
|
Qt6::Svg
|
|
SDL2
|
|
vanilla
|
|
FFmpeg::avformat
|
|
FFmpeg::avcodec
|
|
FFmpeg::avutil
|
|
FFmpeg::avfilter
|
|
)
|
|
|
|
target_include_directories(vanilla-gui PRIVATE
|
|
"${CMAKE_SOURCE_DIR}/lib"
|
|
)
|
|
|
|
install(TARGETS vanilla-gui)
|
|
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/com.mattkc.vanilla.desktop" DESTINATION share/applications)
|
|
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/com.mattkc.vanilla.svg" DESTINATION share/pixmaps) |