|
|
@ -65,6 +65,11 @@ target_link_libraries(qbt_app PRIVATE |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
set_target_properties(qbt_app PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}") |
|
|
|
set_target_properties(qbt_app PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}") |
|
|
|
|
|
|
|
if (GUI) |
|
|
|
|
|
|
|
set_target_properties(qbt_app PROPERTIES OUTPUT_NAME qbittorrent) |
|
|
|
|
|
|
|
else() |
|
|
|
|
|
|
|
set_target_properties(qbt_app PROPERTIES OUTPUT_NAME qbittorrent-nox) |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
# Additional platform specific configuration |
|
|
|
# Additional platform specific configuration |
|
|
|
# ----------------------------------------------------------------------------- |
|
|
|
# ----------------------------------------------------------------------------- |
|
|
@ -145,10 +150,14 @@ if (STACKTRACE) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
if (GUI) |
|
|
|
if (GUI) |
|
|
|
set_target_properties(qbt_app PROPERTIES OUTPUT_NAME qbittorrent) |
|
|
|
|
|
|
|
target_link_libraries(qbt_app PRIVATE qbt_gui) |
|
|
|
target_link_libraries(qbt_app PRIVATE qbt_gui) |
|
|
|
else() |
|
|
|
if ((CMAKE_SYSTEM_NAME STREQUAL "Windows") OR (CMAKE_SYSTEM_NAME STREQUAL "Darwin")) |
|
|
|
set_target_properties(qbt_app PROPERTIES OUTPUT_NAME qbittorrent-nox) |
|
|
|
if (Qt5_VERSION VERSION_LESS 5.14) |
|
|
|
|
|
|
|
set_property(TARGET qbt_app APPEND PROPERTY QT_PLUGINS Qt5::QSvgIconPlugin Qt5::QSvgPlugin) |
|
|
|
|
|
|
|
else() |
|
|
|
|
|
|
|
qt_import_plugins(qbt_app INCLUDE Qt5::QSvgIconPlugin Qt5::QSvgPlugin) |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
endif() |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
if (WEBUI) |
|
|
|
if (WEBUI) |
|
|
@ -159,15 +168,6 @@ if (WEBUI) |
|
|
|
target_link_libraries(qbt_app PRIVATE qbt_webui) |
|
|
|
target_link_libraries(qbt_app PRIVATE qbt_webui) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
if (GUI) |
|
|
|
|
|
|
|
if ((CMAKE_SYSTEM_NAME STREQUAL "Windows") OR (CMAKE_SYSTEM_NAME STREQUAL "Darwin")) |
|
|
|
|
|
|
|
qt5_import_plugins(qbt_app |
|
|
|
|
|
|
|
INCLUDE Qt5::QSvgIconPlugin |
|
|
|
|
|
|
|
INCLUDE Qt5::QSvgPlugin |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Installation |
|
|
|
# Installation |
|
|
|
# ----------------------------------------------------------------------------- |
|
|
|
# ----------------------------------------------------------------------------- |
|
|
|
# ----------------------------------------------------------------------------- |
|
|
|
# ----------------------------------------------------------------------------- |
|
|
|