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

« back to all changes in this revision

Viewing changes to client/common/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 Client Common
 
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 "freerdp-client")
 
19
set(MODULE_PREFIX "FREERDP_CLIENT")
 
20
 
 
21
set(${MODULE_PREFIX}_SRCS
 
22
        client.c
 
23
        cmdline.c
 
24
        compatibility.c
 
25
        compatibility.h
 
26
        file.c)
 
27
 
 
28
foreach(FREERDP_CHANNELS_CLIENT_SRC ${FREERDP_CHANNELS_CLIENT_SRCS})
 
29
        get_filename_component(NINC ${FREERDP_CHANNELS_CLIENT_SRC} PATH)
 
30
        include_directories(${NINC})
 
31
        set(${MODULE_PREFIX}_SRCS ${${MODULE_PREFIX}_SRCS} "${FREERDP_CHANNELS_CLIENT_SRC}")
 
32
endforeach()
 
33
 
 
34
if(MSVC)
 
35
        set(${MODULE_PREFIX}_SRCS ${${MODULE_PREFIX}_SRCS} module.def)
 
36
endif()
 
37
 
 
38
add_library(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
 
39
 
 
40
set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVERSION ${FREERDP_API_VERSION} PREFIX "lib")
 
41
 
 
42
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS}
 
43
        ${FREERDP_CHANNELS_CLIENT_LIBS})
 
44
        
 
45
set_complex_link_libraries(VARIABLE ${MODULE_PREFIX}_LIBS MONOLITHIC ${MONOLITHIC_BUILD}
 
46
        MODULE freerdp
 
47
        MODULES freerdp-core)
 
48
 
 
49
set_complex_link_libraries(VARIABLE ${MODULE_PREFIX}_LIBS MONOLITHIC ${MONOLITHIC_BUILD}
 
50
        MODULE winpr
 
51
        MODULES winpr-crt winpr-utils)
 
52
 
 
53
target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS})
 
54
 
 
55
set_target_properties(${MODULE_NAME} PROPERTIES LINK_INTERFACE_LIBRARIES "")
 
56
 
 
57
install(TARGETS ${MODULE_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT libraries)
 
58
 
 
59
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "Client/Common")
 
60
 
 
61
if(BUILD_TESTING)
 
62
        add_subdirectory(test)
 
63
endif()
 
64