mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2024-05-13 01:22:43 +00:00
Chris Josten
895731ae38
- Removed "jellyfin" prefix from files, as they are already in a directory named Jellyfin - Split the former "jellyfinitem.{h,cpp}" into multiple files in the DTO directory, one for each class. The jellyfinitem files started to become enormous. - Use forward declarations in headers instead of including files wherever possible. - Updated copyright headers
58 lines
2 KiB
CMake
58 lines
2 KiB
CMake
project(jellyfin-qt VERSION 0.1.0)
|
|
find_package(Qt5 5.6 COMPONENTS Multimedia Network Qml WebSockets REQUIRED)
|
|
include(GNUInstallDirs)
|
|
|
|
set(jellyfin-qt_SOURCES
|
|
src/DTO/dto.cpp
|
|
src/DTO/item.cpp
|
|
src/DTO/namedguidpair.cpp
|
|
src/DTO/mediastream.cpp
|
|
src/DTO/types.cpp
|
|
src/DTO/user.cpp
|
|
src/DTO/userdata.cpp
|
|
src/apiclient.cpp
|
|
src/apimodel.cpp
|
|
src/credentialmanager.cpp
|
|
src/deviceprofile.cpp
|
|
src/jellyfin.cpp
|
|
src/jsonhelper.cpp
|
|
src/playbackmanager.cpp
|
|
src/serverdiscoverymodel.cpp
|
|
src/websocket.cpp)
|
|
|
|
set(jellyfin-qt_HEADERS
|
|
include/JellyfinQt/DTO/dto.h
|
|
include/JellyfinQt/DTO/item.h
|
|
include/JellyfinQt/DTO/mediastream.h
|
|
include/JellyfinQt/DTO/namedguidpair.h
|
|
include/JellyfinQt/DTO/types.h
|
|
include/JellyfinQt/DTO/userdata.h
|
|
include/JellyfinQt/DTO/user.h
|
|
include/JellyfinQt/apiclient.h
|
|
include/JellyfinQt/apimodel.h
|
|
include/JellyfinQt/credentialmanager.h
|
|
include/JellyfinQt/deviceprofile.h
|
|
include/JellyfinQt/jellyfin.h
|
|
include/JellyfinQt/jsonhelper.h
|
|
include/JellyfinQt/playbackmanager.h
|
|
include/JellyfinQt/serverdiscoverymodel.h
|
|
include/JellyfinQt/websocket.h)
|
|
|
|
add_definitions(-DSAILFIN_VERSION=\"${SAILFIN_VERSION}\")
|
|
if (PLATFORM_SAILFISHOS)
|
|
add_definitions(-DPLATFORM_SAILFISHOS=1)
|
|
endif()
|
|
add_library(jellyfin-qt ${jellyfin-qt_SOURCES} ${jellyfin-qt_HEADERS})
|
|
target_include_directories(jellyfin-qt
|
|
PUBLIC "include"
|
|
)
|
|
target_link_libraries(jellyfin-qt PUBLIC Qt5::Core Qt5::Multimedia Qt5::Network Qt5::Qml Qt5::WebSockets)
|
|
set_target_properties(jellyfin-qt PROPERTIES CXX_VISIBILITY_PRESET default)
|
|
install(TARGETS jellyfin-qt
|
|
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
|
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
|
INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
|
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
|
|
|
export(TARGETS jellyfin-qt FILE JellyfinQtConfig.cmake)
|