Some work about adaptive color scheme for Web UI (PR #19901)
http://[316:c51a:62a3:8b9::4]/d4708/qBittorrent/src/branch/adaptive-webui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
557 B
16 lines
557 B
# - macro similar to target_link_libraries, which links Qt components |
|
# names of the components are pased in Qt4/Qt5 agnostic way (Core, DBus, Xml...) |
|
# and the macro links Qt4 ones if QT4_FOUND is set or Qt5 ones if not |
|
|
|
macro (target_link_qt_components target) |
|
if (QT4_FOUND) |
|
foreach(_cmp ${ARGN}) |
|
list(APPEND _QT_CMPNTS "Qt4::Qt${_cmp}") |
|
endforeach() |
|
else (QT4_FOUND) |
|
foreach(_cmp ${ARGN}) |
|
list(APPEND _QT_CMPNTS "Qt5::${_cmp}") |
|
endforeach() |
|
endif (QT4_FOUND) |
|
target_link_libraries(${target} ${_QT_CMPNTS}) |
|
endmacro()
|
|
|