2024-11-14 21:48:45 -05:00
|
|
|
find_package(Qt6 REQUIRED COMPONENTS Core Widgets Multimedia OpenGLWidgets Network Concurrent Svg)
|
2024-05-09 14:02:08 -04:00
|
|
|
find_package(SDL2 REQUIRED)
|
2024-06-13 21:43:58 -04:00
|
|
|
find_package(FFmpeg REQUIRED COMPONENTS avformat avcodec avutil avfilter)
|
2024-05-15 15:44:45 -04:00
|
|
|
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_AUTOUIC ON)
|
|
|
|
set(CMAKE_AUTORCC ON)
|
2024-05-09 14:02:08 -04:00
|
|
|
|
2024-05-09 23:53:31 -04:00
|
|
|
add_executable(vanilla-gui
|
2024-05-15 18:19:57 -04:00
|
|
|
audiohandler.cpp
|
2024-05-15 15:44:45 -04:00
|
|
|
backend.cpp
|
2024-08-02 13:46:16 -04:00
|
|
|
backendinitdialog.cpp
|
2024-05-15 15:44:45 -04:00
|
|
|
gamepadhandler.cpp
|
2024-05-20 23:25:55 -04:00
|
|
|
keymap.cpp
|
|
|
|
inputconfigdialog.cpp
|
2024-05-09 14:02:08 -04:00
|
|
|
syncdialog.cpp
|
|
|
|
syncprogressdialog.cpp
|
|
|
|
main.cpp
|
2024-05-15 15:44:45 -04:00
|
|
|
mainwindow.cpp
|
2024-05-20 23:25:55 -04:00
|
|
|
resource.qrc
|
2024-08-04 15:34:13 -04:00
|
|
|
udpaddressdialog.cpp
|
2024-05-15 15:44:45 -04:00
|
|
|
videodecoder.cpp
|
|
|
|
viewer.cpp
|
2024-05-09 14:02:08 -04:00
|
|
|
)
|
|
|
|
|
2024-05-09 23:53:31 -04:00
|
|
|
target_link_libraries(vanilla-gui PRIVATE
|
2024-05-09 14:02:08 -04:00
|
|
|
Qt6::Core
|
|
|
|
Qt6::Widgets
|
2024-06-19 21:20:55 -04:00
|
|
|
Qt6::Network
|
2024-05-09 14:02:08 -04:00
|
|
|
Qt6::Multimedia
|
2024-05-15 15:44:45 -04:00
|
|
|
Qt6::OpenGLWidgets
|
2024-08-04 13:53:00 -04:00
|
|
|
Qt6::Concurrent
|
2024-11-14 21:48:45 -05:00
|
|
|
Qt6::Svg
|
2024-05-09 14:02:08 -04:00
|
|
|
SDL2
|
2024-05-09 23:53:31 -04:00
|
|
|
vanilla
|
2024-06-13 21:43:58 -04:00
|
|
|
FFmpeg::avformat
|
2024-05-15 15:44:45 -04:00
|
|
|
FFmpeg::avcodec
|
|
|
|
FFmpeg::avutil
|
2024-05-20 20:39:29 -04:00
|
|
|
FFmpeg::avfilter
|
2024-05-09 14:02:08 -04:00
|
|
|
)
|
|
|
|
|
2024-05-09 23:53:31 -04:00
|
|
|
target_include_directories(vanilla-gui PRIVATE
|
2024-05-23 21:47:04 -04:00
|
|
|
"${CMAKE_SOURCE_DIR}/lib"
|
2024-05-20 14:46:31 -04:00
|
|
|
)
|
|
|
|
|
2024-05-29 03:09:17 -04:00
|
|
|
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)
|