2024-05-23 21:47:04 -04:00
|
|
|
find_package(Qt6 REQUIRED COMPONENTS Core Widgets Multimedia OpenGLWidgets)
|
2024-05-09 14:02:08 -04:00
|
|
|
find_package(SDL2 REQUIRED)
|
2024-05-20 20:39:29 -04:00
|
|
|
find_package(FFmpeg REQUIRED COMPONENTS 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
|
|
|
|
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-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
|
|
|
|
Qt6::Multimedia
|
2024-05-15 15:44:45 -04:00
|
|
|
Qt6::OpenGLWidgets
|
2024-05-09 14:02:08 -04:00
|
|
|
SDL2
|
2024-05-09 23:53:31 -04:00
|
|
|
vanilla
|
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
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS vanilla-gui)
|