2011-07-08 17:36:40 +04:00
|
|
|
# FreeRDP: A Remote Desktop Protocol Client
|
2012-02-19 07:04:28 +04:00
|
|
|
# libfreerdp-channels cmake build script
|
2011-07-08 17:36:40 +04:00
|
|
|
#
|
|
|
|
# Copyright 2011 O.S. Systems Software Ltda.
|
|
|
|
# Copyright 2011 Otavio Salvador <otavio@ossystems.com.br>
|
|
|
|
# Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2011-10-16 22:57:15 +04:00
|
|
|
set(FREERDP_CHANNELS_SRCS
|
|
|
|
libchannels.c
|
2011-12-11 15:49:08 +04:00
|
|
|
libchannels.h
|
2011-12-12 10:12:16 +04:00
|
|
|
wtsvc.c
|
|
|
|
wtsvc.h)
|
2011-07-08 17:36:40 +04:00
|
|
|
|
2012-08-13 20:32:41 +04:00
|
|
|
if(WITH_MONOLITHIC_BUILD)
|
|
|
|
add_library(freerdp-channels OBJECT ${FREERDP_CHANNELS_SRCS})
|
|
|
|
else()
|
|
|
|
add_library(freerdp-channels ${FREERDP_CHANNELS_SRCS})
|
|
|
|
endif()
|
2011-07-08 17:36:40 +04:00
|
|
|
|
2011-10-16 22:57:15 +04:00
|
|
|
set_target_properties(freerdp-channels PROPERTIES VERSION ${FREERDP_VERSION_FULL} SOVERSION ${FREERDP_VERSION} PREFIX "lib")
|
2011-07-08 17:36:40 +04:00
|
|
|
|
2012-08-13 20:32:41 +04:00
|
|
|
set(FREERDP_CHANNELS_LIBS)
|
|
|
|
|
|
|
|
if(WITH_MONOLITHIC_BUILD)
|
2012-09-19 01:33:52 +04:00
|
|
|
set(FREERDP_CHANNELS_LIBS ${FREERDP_CHANNELS_LIBS} winpr)
|
2012-08-14 08:31:06 +04:00
|
|
|
set(FREERDP_LIBS ${FREERDP_LIBS} ${FREERDP_CHANNELS_LIBS} PARENT_SCOPE)
|
2012-08-13 20:32:41 +04:00
|
|
|
else()
|
|
|
|
set(FREERDP_CHANNELS_LIBS ${FREERDP_CHANNELS_LIBS}
|
|
|
|
freerdp-utils)
|
2012-09-19 01:33:52 +04:00
|
|
|
|
|
|
|
set(FREERDP_CHANNELS_LIBS ${FREERDP_CHANNELS_LIBS}
|
|
|
|
winpr-synch)
|
2012-08-13 20:32:41 +04:00
|
|
|
|
|
|
|
target_link_libraries(freerdp-channels ${FREERDP_CHANNELS_LIBS})
|
|
|
|
install(TARGETS freerdp-channels DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
|
|
endif()
|