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.
14 lines
748 B
14 lines
748 B
# Helper functions for coupling add_feature_info() or CMAKE_DEPENDENT_OPTION() and option() |
|
|
|
function(feature_option _name _description _default) |
|
string(CONCAT _desc "${_description} (default: ${_default})") |
|
option("${_name}" "${_desc}" "${_default}") |
|
add_feature_info("${_name}" "${_name}" "${_desc}") |
|
endfunction() |
|
|
|
include(CMakeDependentOption) |
|
function(feature_option_dependent _name _description _default_opt _dependency _default_dep_not_sat) |
|
string(CONCAT _desc "${_description} (default: ${_default_opt}; depends on condition: ${_dependency})") |
|
CMAKE_DEPENDENT_OPTION("${_name}" "${_desc}" "${_default_opt}" "${_dependency}" "${_default_dep_not_sat}") |
|
add_feature_info("${_name}" "${_name}" "${_desc}") |
|
endfunction()
|
|
|