feat: initial commit for media tracking software
- Setup C++/Qt6 desktop application structure - Added initial Go proxy backend for TMDB/IGDB integration
This commit is contained in:
commit
3f07c78316
63 changed files with 6547 additions and 0 deletions
104
CMakeLists.txt
Normal file
104
CMakeLists.txt
Normal file
|
|
@ -0,0 +1,104 @@
|
|||
cmake_minimum_required(VERSION 3.21)
|
||||
|
||||
project(UltimateMediaTracker
|
||||
VERSION 1.0.0
|
||||
DESCRIPTION "Track movies, series, mangas, books and games"
|
||||
LANGUAGES CXX)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
endif()
|
||||
|
||||
find_package(Qt6 REQUIRED COMPONENTS Widgets Network Sql Svg Concurrent)
|
||||
|
||||
qt_standard_project_setup()
|
||||
|
||||
set(SOURCES
|
||||
src/main.cpp
|
||||
|
||||
src/core/Enums.h
|
||||
src/core/MediaItem.h
|
||||
src/core/MediaItem.cpp
|
||||
src/core/Database.h
|
||||
src/core/Database.cpp
|
||||
src/core/Settings.h
|
||||
src/core/Settings.cpp
|
||||
|
||||
src/providers/MetadataProvider.h
|
||||
src/providers/MetadataProvider.cpp
|
||||
src/providers/TmdbProvider.h
|
||||
src/providers/TmdbProvider.cpp
|
||||
src/providers/OpenLibraryProvider.h
|
||||
src/providers/OpenLibraryProvider.cpp
|
||||
src/providers/AniListProvider.h
|
||||
src/providers/AniListProvider.cpp
|
||||
src/providers/RawgProvider.h
|
||||
src/providers/RawgProvider.cpp
|
||||
src/providers/ProviderManager.h
|
||||
src/providers/ProviderManager.cpp
|
||||
src/providers/ProxyLogin.h
|
||||
src/providers/ProxyLogin.cpp
|
||||
src/providers/ImageCache.h
|
||||
src/providers/ImageCache.cpp
|
||||
|
||||
src/ui/ThemeManager.h
|
||||
src/ui/ThemeManager.cpp
|
||||
src/ui/MainWindow.h
|
||||
src/ui/MainWindow.cpp
|
||||
src/ui/MediaCard.h
|
||||
src/ui/MediaCard.cpp
|
||||
src/ui/FlowLayout.h
|
||||
src/ui/FlowLayout.cpp
|
||||
src/ui/FilterPanel.h
|
||||
src/ui/FilterPanel.cpp
|
||||
src/ui/DetailDialog.h
|
||||
src/ui/DetailDialog.cpp
|
||||
src/ui/EditDialog.h
|
||||
src/ui/EditDialog.cpp
|
||||
src/ui/OnlineSearchDialog.h
|
||||
src/ui/OnlineSearchDialog.cpp
|
||||
src/ui/SettingsDialog.h
|
||||
src/ui/SettingsDialog.cpp
|
||||
src/ui/StarRating.h
|
||||
src/ui/StarRating.cpp
|
||||
|
||||
resources/resources.qrc
|
||||
)
|
||||
|
||||
# Embed a Windows .ico into the executable (shown in Explorer / taskbar).
|
||||
if(WIN32)
|
||||
list(APPEND SOURCES resources/win/app.rc)
|
||||
endif()
|
||||
|
||||
# WIN32: no console window on Windows. MACOSX_BUNDLE: produce a .app on macOS.
|
||||
qt_add_executable(umt WIN32 MACOSX_BUNDLE ${SOURCES})
|
||||
|
||||
target_include_directories(umt PRIVATE src)
|
||||
|
||||
target_link_libraries(umt PRIVATE
|
||||
Qt6::Widgets
|
||||
Qt6::Network
|
||||
Qt6::Sql
|
||||
Qt6::Svg
|
||||
Qt6::Concurrent
|
||||
)
|
||||
|
||||
install(TARGETS umt
|
||||
BUNDLE DESTINATION .
|
||||
RUNTIME DESTINATION bin)
|
||||
|
||||
# Linux desktop integration: install a .desktop launcher and the app icon so it
|
||||
# shows up in menus with a proper icon.
|
||||
if(UNIX AND NOT APPLE)
|
||||
install(FILES resources/linux/ultimate-media-tracker.desktop
|
||||
DESTINATION share/applications)
|
||||
install(FILES resources/icons/appicon.png
|
||||
DESTINATION share/icons/hicolor/256x256/apps
|
||||
RENAME ultimate-media-tracker.png)
|
||||
endif()
|
||||
Loading…
Add table
Add a link
Reference in a new issue