mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-09 14:27:56 +00:00
Set target property before it is used
This commit is contained in:
parent
0284721ba2
commit
aef8f4f465
@ -65,6 +65,11 @@ target_link_libraries(qbt_app PRIVATE
|
||||
)
|
||||
|
||||
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
|
||||
# -----------------------------------------------------------------------------
|
||||
@ -145,10 +150,13 @@ if (STACKTRACE)
|
||||
endif()
|
||||
|
||||
if (GUI)
|
||||
set_target_properties(qbt_app PROPERTIES OUTPUT_NAME qbittorrent)
|
||||
target_link_libraries(qbt_app PRIVATE qbt_gui)
|
||||
else()
|
||||
set_target_properties(qbt_app PROPERTIES OUTPUT_NAME qbittorrent-nox)
|
||||
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()
|
||||
|
||||
if (WEBUI)
|
||||
@ -159,15 +167,6 @@ if (WEBUI)
|
||||
target_link_libraries(qbt_app PRIVATE qbt_webui)
|
||||
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
|
||||
# -----------------------------------------------------------------------------
|
||||
# -----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user