[channels,rdpsnd] add rdpsnd-common object lib

This commit is contained in:
akallabeth
2023-02-20 10:03:03 +01:00
committed by akallabeth
parent 455f6546a7
commit 0307482506
6 changed files with 39 additions and 3 deletions

View File

@@ -187,7 +187,10 @@ macro(add_channel_client_library _module_prefix _module_name _channel_name _dyna
set(${_module_prefix}_CHANNEL ${_channel_name} PARENT_SCOPE)
set(${_module_prefix}_ENTRY ${_entry} PARENT_SCOPE)
add_library(${_module_name} STATIC ${${_module_prefix}_SRCS})
target_link_libraries(${_module_name} ${${_module_prefix}_LIBS})
if (${${_module_prefix}_LIBS})
target_link_libraries(${_module_name} PRIVATE ${${_module_prefix}_LIBS})
endif()
if (NOT BUILD_SHARED_LIBS)
client_channel_install(${_module_name} ${FREERDP_ADDIN_PATH})
@@ -222,6 +225,10 @@ macro(add_channel_server_library _module_prefix _module_name _channel_name _dyna
set(${_module_prefix}_CHANNEL ${_channel_name} PARENT_SCOPE)
set(${_module_prefix}_ENTRY ${_entry} PARENT_SCOPE)
add_library(${_module_name} STATIC ${${_module_prefix}_SRCS})
if (${${_module_prefix}_LIBS})
target_link_libraries(${_module_name} PRIVATE ${${_module_prefix}_LIBS})
endif()
if (NOT BUILD_SHARED_LIBS)
server_channel_install(${_module_name} ${FREERDP_ADDIN_PATH})
endif()