~ubuntu-branches/ubuntu/vivid/freerdp/vivid

« back to all changes in this revision

Viewing changes to server/Sample/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2014-11-11 12:20:50 UTC
  • mfrom: (1.2.5)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: package-import@ubuntu.com-20141111122050-7z628f4ab38qxad5
Tags: upstream-1.1.0~git20140921.1.440916e+dfsg1
ImportĀ upstreamĀ versionĀ 1.1.0~git20140921.1.440916e+dfsg1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# FreeRDP: A Remote Desktop Protocol Implementation
 
2
# FreeRDP Sample Server cmake build script
 
3
#
 
4
# Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
 
5
#
 
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
 
9
#
 
10
#     http://www.apache.org/licenses/LICENSE-2.0
 
11
#
 
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.
 
17
 
 
18
set(MODULE_NAME "sfreerdp-server")
 
19
set(MODULE_PREFIX "FREERDP_SERVER_SAMPLE")
 
20
 
 
21
set(${MODULE_PREFIX}_SRCS
 
22
        sfreerdp.c
 
23
        sfreerdp.h
 
24
        sf_audin.c
 
25
        sf_audin.h
 
26
        sf_rdpsnd.c
 
27
        sf_rdpsnd.h)
 
28
 
 
29
add_executable(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
 
30
 
 
31
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} freerdp-server)
 
32
 
 
33
set_complex_link_libraries(VARIABLE ${MODULE_PREFIX}_LIBS
 
34
        MONOLITHIC ${MONOLITHIC_BUILD}
 
35
        MODULE freerdp
 
36
        MODULES freerdp-core freerdp-utils freerdp-codec freerdp-primitives)
 
37
        
 
38
set_complex_link_libraries(VARIABLE ${MODULE_PREFIX}_LIBS
 
39
        MONOLITHIC ${MONOLITHIC_BUILD}
 
40
        MODULE winpr
 
41
        MODULES winpr-crt)
 
42
 
 
43
target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS})
 
44
install(TARGETS ${MODULE_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})
 
45
 
 
46
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "Server/Sample")