2020-10-25 18:58:02 +00:00
|
|
|
find_package(Qt5 COMPONENTS Gui Qml Quick)
|
|
|
|
set(sailfin_SOURCES
|
2021-02-16 17:01:17 +00:00
|
|
|
src/main.cpp)
|
2020-10-25 18:58:02 +00:00
|
|
|
|
2021-02-16 17:01:17 +00:00
|
|
|
qt5_add_resources(sailfin_RESOURCES qml.qrc)
|
|
|
|
add_executable(sailfin ${sailfin_SOURCES} ${sailfin_RESOURCES})
|
2021-03-24 19:04:03 +00:00
|
|
|
target_link_libraries(sailfin PUBLIC Qt5::Gui Qt5::Qml Qt5::Quick JellyfinQt)
|
2020-10-25 23:14:46 +00:00
|
|
|
|
2021-01-14 16:43:42 +00:00
|
|
|
install(TARGETS sailfin
|
2020-10-25 23:14:46 +00:00
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
)
|
|
|
|
|
|
|
|
install(DIRECTORY translations
|
|
|
|
DESTINATION share/harbour-sailfin
|
|
|
|
FILES_MATCHING PATTERN "*.qm"
|
|
|
|
)
|
|
|
|
|
|
|
|
# Tell Qt Creator where the application executable(s) would be located on the
|
|
|
|
# device.
|
|
|
|
#
|
|
|
|
# It is not necessary to list other deployables than executables (runtime
|
|
|
|
# targets) here. The deployment process of Sailfish OS projects is opaque to
|
|
|
|
# Qt Creator and the information contained in QtCreatorDeployment.txt is only
|
|
|
|
# used to locate the executable associated with the active run configuration
|
|
|
|
# on the device in order to run it.
|
|
|
|
#
|
|
|
|
# Search the Qt Creator Manual to learn about the QtCreatorDeployment.txt file
|
|
|
|
# format.
|
|
|
|
file(WRITE "${CMAKE_BINARY_DIR}/QtCreatorDeployment.txt"
|
|
|
|
"${CMAKE_INSTALL_PREFIX}
|
|
|
|
${CMAKE_BINARY_DIR}/harbour-sailfin:bin
|
|
|
|
")
|