1
# FreeRDP: A Remote Desktop Protocol Implementation
2
# FreeRDP cmake build script
4
# Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
6
# Licensed under the Apache License, Version 2.0 (the "License");
7
# you may not use this file except in compliance with the License.
8
# You may obtain a copy of the License at
10
# http://www.apache.org/licenses/LICENSE-2.0
12
# Unless required by applicable law or agreed to in writing, software
13
# distributed under the License is distributed on an "AS IS" BASIS,
14
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
# See the License for the specific language governing permissions and
16
# limitations under the License.
18
define_channel_client_subsystem("tsmf" "alsa" "audio")
20
set(${MODULE_PREFIX}_SRCS
23
include_directories(..)
24
include_directories(${ALSA_INCLUDE_DIRS})
26
add_channel_client_subsystem_library(${MODULE_PREFIX} ${MODULE_NAME} ${CHANNEL_NAME} "" TRUE "")
28
set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "")
30
set_complex_link_libraries(VARIABLE ${MODULE_PREFIX}_LIBS
31
MONOLITHIC ${MONOLITHIC_BUILD}
33
MODULES freerdp-utils)
35
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} ${ALSA_LIBRARIES})
37
target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS})
39
if(NOT STATIC_CHANNELS)
40
install(TARGETS ${MODULE_NAME} DESTINATION ${FREERDP_ADDIN_PATH})