mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-03 03:20:22 +03:00
c614c66535
Install platform and svg plugins into bundle. Update dependencies in Travis.
16 lines
661 B
CMake
16 lines
661 B
CMake
# a helper function which appends source to the main qBt target
|
|
# sources file names are relative to the the ${qBittorrent_SOURCE_DIR}
|
|
|
|
function (qbt_target_sources)
|
|
set (_sources_rel "")
|
|
foreach (_source IN ITEMS ${ARGN})
|
|
if (IS_ABSOLUTE "${_source}")
|
|
set(source_abs "${_source}")
|
|
else()
|
|
get_filename_component(_source_abs "${_source}" ABSOLUTE)
|
|
endif()
|
|
file (RELATIVE_PATH _source_rel "${qbt_executable_SOURCE_DIR}" "${_source_abs}")
|
|
list (APPEND _sources_rel "${_source_rel}")
|
|
endforeach()
|
|
target_sources (qBittorrent PRIVATE "${_sources_rel}")
|
|
endfunction (qbt_target_sources)
|